access的数字型和货币型为何用Table1.Fields[i].DataType取出来都是ftfloat???
我想把货币型改为Currency型,在程序中该如何做???
我想把货币型改为Currency型,在程序中该如何做???
解决方案 »
- AdvStringGrid如何连接sqllite数据库中的数据?
- 怎么样通过IdTCPClient控件来接收服务器端发送过来的数据。
- 请教:用delphi作word开发的问题
- 如何检查一个Groupbox中的checkbox控件的状态?
- fastreport问题,在线等,高分!!!!!!!!!!!
- 我继承一个组件,当override它的一个方法时,想在这个方法中访问祖先的私有成员。请问如何办到呢?
- 今天,听一位老程序员说.................................
- 100分求助--想找一些开源的分布式系统
- 请问各位大虾:datasetExport是什么控件?还有alstatusbar又是什么系列控件?我查了半天查不出来!
- 请高手救命!!!三层数据库中如何设计客户端的登录程序
- D7中用来打开html文件的组件是什么?
- 数据库查询(本人是菜鸟,分数已经花光了,不好意思)
给你他的类型说明吧,你自己看是对应到delphi什么类型啦Value DescriptionftUnknown 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 fieldftArray field
ftReference REF field
ftDataSet DataSet field
ftOraBlob BLOB fields in Oracle 8 tables
ftOraClob CLOB fields in Oracle 8 tables
ftVariant Data of unknown or undetermined type
ftInterface References to interfaces (IUnknown)
ftIDispatch References to IDispatch interfaces
ftGuid globally unique identifier (GUID) values
if Table1.Fields[i].DataType=ftFloat then TrFieType:='float';
if Table1.Fields[i].DataType=ftCurrency then TrFieType:='Currency';
TmpQry.Sql.Add('Alter Table x ADD zz '+TrFieType);数字型和货币型用Table1.Fields[i].DataType取出来都是ftfloat,可我想把货币型和数字型区分开。
if Table1.Fields[i].DataType=ftCurrency then TrFieType:='Currency';
TmpQry.Sql.Add('Alter Table x ADD zz '+TrFieType);
用adodataset数据库 sql server 7,定义的数据类型为Currency
你试一下!