首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Access >

邪门了,Insert into语句爆出 参数没有默认值,该如何解决

2012-03-17 
邪门了,Insert into语句爆出 参数没有默认值我在delphi7中有这样一段行代码:ADOQuery.Add( Insertintomsg(

邪门了,Insert into语句爆出 参数没有默认值
我在delphi7中   有这样一段行代码:
ADOQuery.Add( 'Insert   into   msg(field1,field2,field3)Select   field1,field2,field3   from   addmsg ');
执行时,爆出参数field1,field2,field3没有默认值的错误,令人不解,我在设计库时,只有field3用的默认值,但是我将他去除后:
ADOQuery.Add( 'Insert   into   msg(field1,field2)Select   field1,field2   from   addmsg ');
爆出field1,field2没有默认值的错误,各位给解释一下




[解决办法]
field1,field2中间的 ", "是不是英文半角的“,”

热点排行