sql constarint

Solutions on MaxInterview for sql constarint by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "sql constarint"
Mahamadou
27 Apr 2020
1It creates a new constraint on an existing table, which is used to specify
2rules for any data in the table.
3Example: Adds a new PRIMARY KEY constraint named ‘user’ on columns
4ID and SURNAME.
5ALTER TABLE users
6ADD CONSTRAINT user PRIMARY KEY (ID, SURNAME);