RE: [PHP-DB] Oracle INSERT
| From: | Gurhan Ozen | Date: | Thu, 28 Mar 2002 19:56:43 +0000 |
| Subject: | RE: [PHP-DB] Oracle INSERT | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18008@lists.php.net to get a copy of this message | ||
I don't know if you can do in one INSERT INTO statements per se in Oracle,
try to separate insert into statements with semicolon(;) .. Or if you will
insert the data that is already in another table you can use INSERT INTO
... SELECT ... FROM ... syntax.
Gurhan
-----Original Message-----
From: Chris Andrew [mailto:candrew@oxspring.com]
Sent: Thursday, March 28, 2002 8:15 AM
To: php-db@lists.php.net
Subject: [PHP-DB] Oracle INSERT
Hi,
This is probably more of a topic for the Oracle groups - however:
This gives me an error:
$c1 = ocilogon("chris","chris01");
$sql = "INSERT INTO tblTest VALUES(1,'Test One'),(2,'Test Two')";
$stat= ociparse($c1,$sql);
It would appear my INSERT syntax is illegal under Oracle.
Qu: How can I INSERT multiple rows with ONE statement?
Thanks in advance.
Chris
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php