下面是数据类型的属性
query1.FieldByName('name').DataType
query1.Fields[0].DataType

解决方案 »

  1.   

    楼上的对了,TField.DataTypeftUnknown Unknown or undetermined
    ftString Character or string field
    ftSmallint 16-bit integer field
    ftInteger 32-bit integer field
    ftWord 16-bit unsigned integer field
    ftBoolean Boolean field
    ftFloat Floating-point numeric field
    ftCurrency Money field
    ftBCD Binary-Coded Decimal field
    ftDate Date field
    ftTime Time field
    ftDateTime Date and time field
    ftBytes Fixed number of bytes (binary storage)
    ftVarBytes Variable number of bytes (binary storage)
    ftAutoInc Auto-incrementing 32-bit integer counter field
    ftBlob Binary Large OBject field
    ftMemo Text memo field
    ftGraphic Bitmap field
    ftFmtMemo Formatted text memo field
    ftParadoxOle Paradox OLE field
    ftDBaseOle dBASE OLE field
    ftTypedBinary Typed binary field
    ftCursor Output cursor from an Oracle stored procedure (TParam only)
    ftFixedChar Fixed character field
    ftWideString Wide string field
    ftLargeInt Large integer field
    ftADT Abstract Data Type field
    ftArray Array field
    ftReference REF field
    ftDataSet DataSet field
      

  2.   

    查找 datatype的帮助,这里有所有delphi中的字段类型