以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  下面这段代码错哪儿了  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=6210)

--  作者:lpxjw_zyl
--  发布时间:2010/3/16 21:25:00
--  下面这段代码错哪儿了
for i as Double = 1000001 to 1000099
Insert Into Xssj ( _Identify,编号,产品) Values( "&i&",100,\'PD01\')
next

--  作者:mr725
--  发布时间:2010/3/16 21:44:00
--  


感觉不要_Identify这一列,一般它是自动增量的。

这样试一试看呢?:::

for i as Double = 1000001 to 1000099
Insert Into Xssj (,编号,产品) Values(100,"PD01")
next


--  作者:lxl
--  发布时间:2010/3/16 22:38:00
--  

你试试在命令窗口输入
select * from {表A}  这么正确的语句 一样报错。



Insert Into Xssj ( _Identify,编号,产品) Values( "&i&",100,\'PD01\')
是SQL语句 只能在SQL SERVER 或者 foxtable的 杂项→执行SQL 里面执行。


--  作者:狐狸爸爸
--  发布时间:2010/3/16 23:34:00
--  
看看SQLCommand