зеркало из
https://github.com/iharh/notes.git
synced 2025-11-02 22:56:09 +02:00
15 строки
423 B
Plaintext
15 строки
423 B
Plaintext
-- Create a new table called 'Customers' in schema 'dbo'
|
|
-- Drop the table if it already exists
|
|
IF OBJECT_ID('dbo.Customers', 'U') IS NOT NULL
|
|
DROP TABLE dbo.Customers;
|
|
GO
|
|
|
|
-- Create the table in the specified schema
|
|
CREATE TABLE dbo.Customers (
|
|
CustomerId INT NOT NULL PRIMARY KEY, -- primary key column
|
|
[Name] NVARCHAR(50) NOT NULL,
|
|
[Location] NVARCHAR(50) NOT NULL,
|
|
[Email] NVARCHAR(50) NOT NULL
|
|
);
|
|
GO
|