sql constarint

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

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 ‘useron columns
4ID and SURNAME.
5ALTER TABLE users
6ADD CONSTRAINT user PRIMARY KEY (ID, SURNAME);