Re: SQLite PRIMARY KEY.

From: Date: Sat, 31 Jan 2004 02:09:00 +0000
Subject: Re: SQLite PRIMARY KEY.
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-32729@lists.php.net to get a copy of this message
Well, it appears I tried everything except JUST the word NULL. Sorry for wasting your time. Regards, Stuart Gilbert. Stuart Gilbert wrote:
I'm trying to get my PHP code to INSERT a new row and have the PRIMARY KEY field automatically set to the next available integer. I read, somewhere, that if I send null as the primary key value then SQLite will automatically incrememnt it for me. I've tried sending all sorts of things that I thought might work, but as yet I have not been able to get it right. Can someone please help me? Regards,
    Stuart Gilbert.


« previous php.db (#32729) next »