如题。

解决方案 »

  1.   

    SQL Server可以从系统表读,别的偶不知道
      

  2.   

    Indicates the size used in the definition of the physical database field for data types that support different sizes.Delphi syntax:property Size: Integer;C++ syntax:__property int Size = {read=GetSize, write=SetSize, nodefault};DescriptionThe interpretation of Size depends on the data type. The meaning of Size for data types that use it is given in the following table. For all other data types, Size is not used and its value is always 0.DataType Meaning of SizeftBCD Size is the number of digits after the decimal place.
    ftString Size is the maximum number of characters in the string.
    ftVarBytes Size is the maximum number of bytes of data, not counting the first two bytes which indicate the actual number of bytes of data that were used.
    ftBytes Size is the maximum number of bytes of data.
    ftBlob Size is the number of bytes from the BLOB that are stored in the record buffer.
    ftDBaseOle Size is the number of bytes from the dBASE OLE BLOB that are stored in the record buffer.ftFMTBCD Size is the number of digits after the decimal place.
    ftFmtMemo Size is the number of bytes from the memo that are stored in the record buffer.
    ftGraphic Size is the number of bytes from the image that are stored in the record buffer.
    ftMemo Size is the number of characters from the memo that are stored in the record buffer.
    ftParadoxOle Size is the number of bytes from the Paradox OLE BLOB that are stored in the record buffer.
    ftTypedBinary Size is the number of bytes from the BLOB that are stored in the record buffer.ftADT Size is the total number of fields contained in the ADT field, including the fields of child fields that are of type ADT.
    ftArray Size is the number of elements in the array.
      

  3.   

    s:=table1.FieldDefs[0].Size;
    showmessage(inttostr(s));
      

  4.   

    s:=table1.FieldDefs[0].Size;
    showmessage(inttostr(s));