php_tricks

Thursday, 14 August 2014

how to set unique for combined columns in mysql

ALTER TABLE `tablename` ADD UNIQUE `unique_index`(`column1`, `column2`, `column2`);
Posted by Vijay at 03:11 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Blog Archive

  • ▼  2014 (5)
    • ▼  August (1)
      • how to set unique for combined columns in mysql
    • ►  June (3)
    • ►  May (1)

About Me

My photo
Vijay
View my complete profile
Awesome Inc. theme. Powered by Blogger.