LOL, good point. I could also use an Oracle GUID as yet another option
for a PK.

-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED] 
Sent: Monday, 6 June 2005 9:21 
To: CF-Talk
Subject: Re: Get New Record ID in mySQL

James Holmes wrote:
> Yes, I was considering that myself. I rather like having the trigger, 
> because it enforces the correct sequence for the correct table (I can 
> just see myself selecting from the wrong sequence and wondering why my

> PK was violated).

If you use just one sequence for all tables you always select from the
right one :)

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208664
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to