mysql - How to make a table's specific column unique to another table -


i have 2 tables:

tag      | song _________|___________ tagname  | songtitle song_id  | 

i want make tagname unique song_id using mysql.

in database add unique key the tagname column.so not allow duplicate entry.


Popular posts from this blog

java - Cannot send AES encrypted messages of over 47 characters -

php - How to set default value of a select dynamically from database using smarty? -

telerik - Reformat image format in PDF -