If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > How do I multirow insert in Firebird?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-06, 09:20
ToreBK ToreBK is offline
Registered User
 
Join Date: Oct 2002
Location: Norway
Posts: 13
How do I multirow insert in Firebird?

I would like to find a way to do a multirow insert in Firebird similar to the examples below ... if possible.
Note that I need it to work with constant values and not values selected from a(nother) table (ref examples below).

Anyone?

In MySQL and DB2 I can do this:
insert into pager (PAG_ID,PAG_PARENT,PAG_NAME,PAG_ACTIVE)
values (8000,0,'Multi 8000',1),(8001,0,'Multi 8001',1)

In Oracle I can do this:
insert into pager (PAG_ID,PAG_PARENT,PAG_NAME,PAG_ACTIVE)
select 8000,0,'Multi 8000',1 from dual
union all select 8001,0,'Multi 8001',1 from dual

In MSSQL, PostgreSQL, and SQLite I can do this:
insert into pager (PAG_ID,PAG_PARENT,PAG_NAME,PAG_ACTIVE)
select 8000,0,'Multi 8000',1 union all select 8001,0,'Multi 8001',1
__________________
Tore
Reply With Quote
  #2 (permalink)  
Old 01-15-07, 15:12
quipo quipo is offline
Registered User
 
Join Date: May 2006
Posts: 2
INSERT INTO pager (PAG_ID,PAG_PARENT,PAG_NAME,PAG_ACTIVE)
SELECT 8000,0,'Multi 8000',1 FROM RDB$DATABASE
UNION ALL SELECT 8001,0,'Multi 8001',1 FROM RDB$DATABASE
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On