Subject | Re: [firebird-support] INSERT Multiple Rows same SQL Statment |
---|---|
Author | Anderson Farias |
Post date | 2008-09-24T15:10:34Z |
Hi,
BLOCK to 'goup' those statements.
execute block as (
insert on _table_ (field1,field2,field3,field4) values ('USD', 'EUR',
2008,0.93);
insert on _table_ (field1,field2,field3,field4) values ('BLR', 'AUD',
2007,x.xx);
...
)^
(this is not the correct syntax, look at the release notes)
Note that "old" FB versions do not suport execute block.
Regards,
Anderson Farias
>Unfortunatelly it did not work in firebird. Do we have a way to insertYou have to use multiple insert statments. You may, if desited, use EXECUTE
>multiple rows in a single
>statment in firebird?
BLOCK to 'goup' those statements.
>I want to reduce time by inserting everything i need in a single statment.I can see where using a single statement will reduce 'time' in any way.
> I wanna insert several currency quotes in tbcurrencyquotes in thesomething like
> following format:
>USD EUR 2008 0.93
>BRL AUD 2007 x.xxx
execute block as (
insert on _table_ (field1,field2,field3,field4) values ('USD', 'EUR',
2008,0.93);
insert on _table_ (field1,field2,field3,field4) values ('BLR', 'AUD',
2007,x.xx);
...
)^
(this is not the correct syntax, look at the release notes)
Note that "old" FB versions do not suport execute block.
Regards,
Anderson Farias