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

node.js - How do I prevent MongoDB replica set from querying the primary? -

c# - Randomly pick a specific int from a 2D Array -

php - Angularjs http.delete is not working after deploying project on server -