简体   繁体   中英

MS access 2003, sql script

How can i execute inside MS Access 2003 sql script. For example - multiply inserts or updates.

I try to execute:

  • insert into tbl (field1, field2) values (1,2), (3,4) - after (1,2)- must be semicolon .
  • insert ... values (1,2,3,4) - number of arguments not match
  • insert ...(1,2); insert ... (3,4) - extra symbols after semicolon .

Possibly I can execute external script file?

Or i must write VB/JS/Other script, which will call queries one at a time?

MS Access一次只能执行一个sql语句,您不能放分号然后编写下一个语句,因此,您将需要另一个脚本或CSV,可以直接将其插入。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM