terlalex
Дата: 31.07.2019 09:29:18
Запрос
select oc4v_product_description.name, oc4v_product.price, GROUP_CONCAT(distinct oc4v_product_attribute.text ORDER by attribute_id asc)
from `oc4v_product` join `oc4v_product_description` on oc4v_product.product_id = oc4v_product_description.product_id left
join `oc4v_product_attribute` on oc4v_product.product_id = oc4v_product_attribute.product_id
where oc4v_product_description.language_id =2
group by oc4v_product_description.name, oc4v_product.price
my sql выдает нормально 4 результата
но когда пытаюсь вывести через dbgrid - результат пустой !!
Gerasimenko
Дата: 31.07.2019 09:52:32
terlalex,
type TFieldType = (ftUnknown, ftString, ftSmallint, ftlnteger, ftWord, ftBoolean, ftFloat, ftCurrency, ftBCD, ftDate, ftTime, ftDateTime, ftBytes, ftVarBytes, ftAutoInc, ftBlob, ftMemo, ftGraphic, ftFmtMemo, ftParadoxOle, ftDBaseOle, ftTypedBinary, ftCursor, ftFixedChar, ftWideString, ftLargeint, ftADT, ftArray, ftReference, ftDataSet, ftOraBlob, ftOraClob, ftVariant, ftlnterface, ftlDispatch, ftGuid, ftTimeStamp, ftFMTBcd);
Gerasimenko
Дата: 31.07.2019 09:56:19
terlalex,
cast as varchar(4000) , к примеру, должно отработать