电竞玩家 林俊杰:INSERT INTO 语句的语法错误。

来源:百度文库 编辑:高考问答 时间:2024/05/09 20:42:40
Insert Into order (resurt ,total) values('" & sql & " ' , " & 56 & " ) where orderid = " & Session("orderid")
把inser into 改为 update set 就可以了
inser into 好象不能用 where

SQL语句这样写:
dbs.Execute " INSERT INTO Table1 " _
& "(a , b, Title) c " _
& "('100', '八', '笔');"
如果想使用For...Next循环可以这样:
For i= 100 to 200
dbs.Execute " INSERT INTO Table1 " _
& "(a , b, Title) c " _
& "('" + CStr(i) +"', '八', '笔');"
Next