我做了一个
SELECT GZSJLX.ID, SUM(GZSJLX.SZ) as sss
FROM GZSJLX
GROUP BY GZSJLX.ID
在功能中, Dialogs.Showmessage(SysUtils.IntToStr(Integer(DataSetBroker1.DataSet.FieldByName('sss').DataType)));
显示为 8
对应第8个是ftBCD类型,不是楼主说的ftString
type TFieldType = (ftUnknown, ftString, ftSmallint, ftInteger, 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, ftInterface, ftIDispatch, ftGuid, ftTimeStamp, ftFMTBcd); |