Multiple INSERT INTO

Forum related to Firebird

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
tatamata
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: 10.06.2007, 13:45
Location: Zagreb, Croatia

Multiple INSERT INTO

Post by tatamata »

Hi!
1. Is it possible to execute multiple INSERT INTO table (fields) VALUES (..), using Zeoslib and how?
2. I have a procedure which dynamically creates SQL string "INSERT INTO" and executes it for every row seperately. If I generate SQL strings first for all rows and the execute multiple "INSERT INTO.." in one step, would it increase performance?
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

For scripts there is the ZSQLProcessor component. Just write the sqlscript in a string. Set the Script property (just once, that should be more efficient than adding line by line). Call the execute method.
Not sure if it would increase performance. Statements would be fired one by one to the database anyway.

Mark
Image
Post Reply