RE: [PHP-DB] NEXTVAL Question
| From: | N dot A dot Morgan at bton dot ac dot uk | Date: | Fri, 12 Dec 2003 08:34:01 +0000 |
| Subject: | RE: [PHP-DB] NEXTVAL Question | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-32016@lists.php.net to get a copy of this message | ||
put the schema name before the sequence object you need to increment, i.e.
$sql = "select SCHEMA.TEAM_SEQ.NEXTVAL as \"nextval\" from sys.dual";
Regards,
Neil Morgan
-----Original Message-----
From: Paul Miller [mailto:pmiller@system-wise.com]
Sent: 12 December 2003 00:05
To: php-db@lists.php.net
Subject: [PHP-DB] NEXTVAL Question
Does anyone know how to make this work???
$sql = "select TEAM_SEQ.NEXTVAL as \"nextval\" from sys.dual";
I get the following error in PHP:
ociexecute(): OCIStmtExecute: ORA-00903: invalid table name
But when I use my SQL tool to hit the DB will all the same parameters, it
works just fine.
I have also tried:
$sql = "select TEAM_SEQ.NEXTVAL from sys.dual";
$sql = "select TEAM_SEQ.NEXTVAL from dual";
all with the same results.
I am running Red Hat AS, PHP 4.3, OCI8 Functions and Oracle 9i.
- Paul
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php