using default constraints | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

using default constraints

CREATE TABLE Persons ( ID int NOT NULL, LastName varchar(255) NOT NULL, FirstName varchar(255), Age int, City varchar(255) DEFAULT 'Sandnes' );

11th Jun 2017, 8:39 AM
rasoul norouzi
rasoul norouzi - avatar
1 Réponse
0
ID int PRIMARY KEY IDENTITY(1,1) The keyword PRIMARY KEY set NOT NULL for default and It will be an ID unique. The keyword IDENTITY increment your ID in 1
24th Jan 2018, 11:33 PM
Maximiliano