ВУЗ:
Составители:
Рубрика:
201
-- 1. Сценарии создания базы данных
-- 1.1. Сценарий создания таблицы «Авторы»
/****** Object: Table [dbo].[Авторы] Script Date: 11/24/2009 15:11:07 ******/
IF EXISTS (SELECT * FROM sys.objects WHERE object_id =
OBJECT_ID(N'[dbo].[Авторы]') AND type in (N'U'))
DROP TABLE [dbo].[Авторы]
GO
/****** Object: Table [dbo].[Авторы] Script Date: 11/24/2009 15:11:07 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id =
OBJECT_ID(N'[dbo].[Авторы]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Авторы](
[Код автора] [int] NOT NULL,
[Фамилия автора] [char](20) NOT NULL,
[Имя автора] [char](20) NULL,
[Отчество автора] [char](20) NULL,
[Дата рождения] [datetime] NULL,
[Дата смерти] [datetime] NULL,
[Код страны] [int] NULL,
[Место проживания] [char](100) NOT NULL,
CONSTRAINT [PK_Авторы] PRIMARY KEY CLUSTERED
(
[Код автора] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_PADDING OFF
GO
/****** Object: Index [PK_ Author_Family_Name] Script Date: 11/24/2009
15:11:07 ******/
IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id =
OBJECT_ID(N'[dbo].[Авторы]') AND name = N'PK_ Author_Family_Name')
CREATE NONCLUSTERED INDEX [PK_ Author_Family_Name] ON
[dbo].[Авторы]
-- 1. Сценарии создания базы данных
-- 1.1. Сценарий создания таблицы «Авторы»
/****** Object: Table [dbo].[Авторы] Script Date: 11/24/2009 15:11:07 ******/
IF EXISTS (SELECT * FROM sys.objects WHERE object_id =
OBJECT_ID(N'[dbo].[Авторы]') AND type in (N'U'))
DROP TABLE [dbo].[Авторы]
GO
/****** Object: Table [dbo].[Авторы] Script Date: 11/24/2009 15:11:07 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id =
OBJECT_ID(N'[dbo].[Авторы]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Авторы](
[Код автора] [int] NOT NULL,
[Фамилия автора] [char](20) NOT NULL,
[Имя автора] [char](20) NULL,
[Отчество автора] [char](20) NULL,
[Дата рождения] [datetime] NULL,
[Дата смерти] [datetime] NULL,
[Код страны] [int] NULL,
[Место проживания] [char](100) NOT NULL,
CONSTRAINT [PK_Авторы] PRIMARY KEY CLUSTERED
(
[Код автора] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_PADDING OFF
GO
/****** Object: Index [PK_ Author_Family_Name] Script Date: 11/24/2009
15:11:07 ******/
IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id =
OBJECT_ID(N'[dbo].[Авторы]') AND name = N'PK_ Author_Family_Name')
CREATE NONCLUSTERED INDEX [PK_ Author_Family_Name] ON
[dbo].[Авторы]
201
Страницы
- « первая
- ‹ предыдущая
- …
- 199
- 200
- 201
- 202
- 203
- …
- следующая ›
- последняя »
