Saturday (Stuart Kidd) wrote:

>Hi guys,
>
>I want to add a row in a join table which i don't want to be  
>duplicated ever.
>
>So i have my tableID, table1ID, table2ID - if table1ID = 24 and  
>table2ID = 35 i don't want there to ever be a reoccurence of them.  I  
>guess i have to set both of those fields (table1ID, table2ID) to  
>primary keys, but how can i do that?  Do i do it in ms-sql or via  
>Coldfusion somehow?  If i do it via MS-SQL then won't it pop an error  
>up in the code if it happens?
>
>Thanks,
>
>Saturday
>  
>
Are you talking about compound keys? Where more then one field is the
primary key?  This can be done in most databases - even access if I
remember correctly.

-JM

-- 
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
[EMAIL PROTECTED] 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:211929
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to