CREATE TABLE Foo ( Col1 INT IDENTITY(1, 1) NOT NULL PRIMARY KEY, Col2 CHAR(100) NOT NULL, Col3 CHAR(100) NOT NULL, DevelopersPain AS (1 / 0) ) GO -- Insert some test data INSERT INTO Foo VALUES ('a', 'a'), ('b', 'b'), ('c', 'c') GO
出自:http://blog.jobbole.com/93655/