Re: Re: Getting last record ID created from DB
| From: | Satyam | Date: | Sun, 18 Mar 2007 14:06:50 +0000 |
| Subject: | Re: Re: Getting last record ID created from DB | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250779@lists.php.net to get a copy of this message | ||
----- Original Message ----- From: <markw@mohawksoft.com>
I guess maybe most databases support the notion of "auto number" in some form. I haven't used MSSQL recently, but I think their solution is a GUID.You can set an auto-increment attribute on any integer data type. They also have GUIDs, which they recomend using if you plan on using replication, as any autonumeric sequence is local to each database and there will be repetitions over multiple servers, something GUIDs won't. Satyam