mysql help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sudheerk
    New Member
    • Jul 2007
    • 13

    #1

    mysql help

    query for not allowing the names which are already wxists in the database in mysql
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by sudheerk
    query for not allowing the names which are already wxists in the database in mysql
    Please don't double post

    Comment

    • dafodil
      Contributor
      • Jul 2007
      • 389

      #3
      Just set it as a unique

      example:
      ALTER TABLE `pdt_tracker` ADD UNIQUE `Tracker_Code` ( `Tracker_Code` )

      You can also set it as a primary key.

      Comment

      Working...