Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

/*******************************************************************************

********************** Structure de l'index clustered ***********************


********************************************************************************/

--CREATE DATABASE BDD


--go

-- Creation de la table
USE BDD
go

IF EXISTS (SELECT * FROM sys.objects WHERE object_id =


OBJECT_ID(N'[dbo].[Personne]') AND type in (N'U'))
DROP TABLE [dbo].[Personne]
GO
CREATE table Personne (Nom nchar(60),Adresse varchar(60))
GO

declare @i int
set nocount on
set @i = 1
while @i < 10000
begin
insert into Personne values
('Alfred'+ltrim(str(@i)),'Paris'),
('Bernard'+ltrim(str(@i)),'Dieppe'),
('Laurent'+ltrim(str(@i)),'Rouen'),
('Pascal'+ltrim(str(@i)),'Le Havre'),
('William'+ltrim(str(@i)),'Caen')
set @i = @i + 1
end
GO

You might also like