delphi + ado + dbf 连接 dbf数据库
adoconnection字符串为:
ado_fox.ConnectionString :=
'Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=dbase 5.0;Persist Security Info=False;Data Source='+foxpath ;创建语句为:create tb(
aa numeric(8,2),
bb numeric(8,2),
cc numeric(8,2), gjjg numeric (4,2),
je numeric(10,2),
Corder numeric(8),
gorder numeric(8),
mporder numeric(8))
语句执行后 发现 tb.dbf 的字段宽度为
aa numeric(16,2),
bb numeric(16,2),
cc numeric(16,2),
gjjg numeric (16,2),
je numeric(16,2),
Corder numeric(16),
gorder numeric(16),
mporder numeric(16))
为什么 numeric类型 都变成 16了,请问只是为什么,有什么办法能让 数据库按 创建语句给出的宽度创建?请各位大侠给出 解决方法,不胜感激
adoconnection字符串为:
ado_fox.ConnectionString :=
'Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=dbase 5.0;Persist Security Info=False;Data Source='+foxpath ;创建语句为:create tb(
aa numeric(8,2),
bb numeric(8,2),
cc numeric(8,2), gjjg numeric (4,2),
je numeric(10,2),
Corder numeric(8),
gorder numeric(8),
mporder numeric(8))
语句执行后 发现 tb.dbf 的字段宽度为
aa numeric(16,2),
bb numeric(16,2),
cc numeric(16,2),
gjjg numeric (16,2),
je numeric(16,2),
Corder numeric(16),
gorder numeric(16),
mporder numeric(16))
为什么 numeric类型 都变成 16了,请问只是为什么,有什么办法能让 数据库按 创建语句给出的宽度创建?请各位大侠给出 解决方法,不胜感激
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货