How to Execute 2 or more insert statements using CFQuery in coldfusion?

前端 未结 6 1325
予麋鹿
予麋鹿 2021-01-13 08:29

Is it possible to Execute 2 insert or Update Statements using cfquery?

If yes how?

if no, what is the best way to execute multiple queries in Co

6条回答
  •  广开言路
    2021-01-13 08:38

    Sorry for the Necro (I'm new to the site).

    You didn't mention what DB you're using. If you happen to use mySQL you can add as many records as the max heap size will allow.

    I regularly insert up to ~4500 records at a time with the default heap size (but that'll depend on the amount of data you have).

    INSERT INTO yourTable (x,y,z) VALUES ('a','b','c'),('d','e','f'),('g','h','i')
    

    All DBs should do this IMO.

    HTH

提交回复
热议问题