Subject | Re: [firebird-support] Inserting Rows into DB |
---|---|
Author | Martijn Tonies |
Post date | 2006-05-16T13:24:47Z |
Hello Rick,
VALUES clause.
Martijn Tonies
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
>I have successfully created a Firebird Database, table and am now ready toMake that INSERT INTO ;-)
>insert some test data. I've read about the INSERT FROM syntax.
>It appears that the examples insert one row at a time using the VALUESNo, there's currently no such thing, only 1 row can be inserted with a
>clause. In my program I will read from a CSV or Random Access file or get
>some data for several rows, perhaps 30 to 100 in some other way, then want
>to insert these new rows into the FB database table. Is there some syntax
>to build multiple VALUES list entries and insert them with one execute
>statement I can research further?
VALUES clause.
>Or, do I have to loop through the logic to define the COLUMN VALUES foreach
>row and perform an EXECUTE for each row I want to insert?You have to "execute" for each new row.
>I'm considering performance, of course.
Martijn Tonies
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com