Subject | Re: [firebird-support] Re: Major stumbling block: Lack of multiple-row insert capability |
---|---|
Author | Lester Caine |
Post date | 2007-01-24T06:28:51Z |
jft wrote:
RECREATE TABLE TABLE1 (
col1 integer,
col2 integer);
COMMIT;
INSERT INTO TABLE1(col1,col2) VALUES(1,2);
INSERT INTO TABLE1(col1,col2) VALUES(3,4);
COMMIT;
Why do you think you need the EXECUTE?
The inserted values will not be available in the new table until the
COMMIT so are blocked together.
--
Lester Caine - G8HFL
-----------------------------
L.S.Caine Electronic Services - http://home.lsces.co.uk
Model Engineers Digital Workshop -
http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php
> I put the example code from this thread intoNot sure why you are trying to make this complicated all you need is
> the following script & ran it from iSQL in
> a database created under FB2 (ver 2.0.0.12748):
>
> RECREATE TABLE TABLE1 (
> col1 integer,
> col2 integer);
> COMMIT;
> EXECUTE BLOCK AS BEGIN
> INSERT INTO TABLE1(col1,col2) VALUES(1,2);
> INSERT INTO TABLE1(col1,col2) VALUES(3,4);
> END;
RECREATE TABLE TABLE1 (
col1 integer,
col2 integer);
COMMIT;
INSERT INTO TABLE1(col1,col2) VALUES(1,2);
INSERT INTO TABLE1(col1,col2) VALUES(3,4);
COMMIT;
Why do you think you need the EXECUTE?
The inserted values will not be available in the new table until the
COMMIT so are blocked together.
--
Lester Caine - G8HFL
-----------------------------
L.S.Caine Electronic Services - http://home.lsces.co.uk
Model Engineers Digital Workshop -
http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php