auto_increment
| From: | webmaster | Date: | Fri, 26 Apr 2002 09:53:15 +0000 |
| Subject: | auto_increment | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-94763@lists.php.net to get a copy of this message | ||
I'm using PHP v.4.0.6. and PostgreSQL 7.2. Does any one know the
equivilant of auto_increment for postgresSQL? For example when creating
a table:
$query = "CREATE table $tablename (id INT UNSIGNED NOT NULL
AUTO_INCREMENT PRIMARY KEY, firstname TEXT, lastname TEXT, emailaddress
TEXT, )";
this works fine in MySQL, but I keep getting errors with PostgreSQL.
thanks for any help,
-Elkan