Inserting multiple rows in sqlplus
From: Raj Kotaru <raj_kotaru_at_hotmail.com>
Date: 22 Jan 2004 13:22:19 -0800
Message-ID: <67bf894f.0401221322.33dd14e3_at_posting.google.com>
Date: 22 Jan 2004 13:22:19 -0800
Message-ID: <67bf894f.0401221322.33dd14e3_at_posting.google.com>
Hi,
In sqlplus, I can insert a single row using:
insert into employee
Is there a modification of the insert command that will allow me to
insert more than one row into a table without having to resort to
multiple "insert into ..." statements?
For example, can I insert two rows via something that lloks like:
insert into employee
(name, salary, hiredate)
values
('xyz', '86378', sysdate);
(name, salary, hiredate)
values
{
('xyz', '86378', sysdate),
('abc', '84249', sysdate-1)
};
Here I am assuming that { } encloses all valid rows, with () enclosing a single row within the surrounding {}.
Thanks
Raj
Received on Thu Jan 22 2004 - 22:22:19 CET