Professional Documents
Culture Documents
sgbd1 sgbd2
sgbd1 sgbd2
sgbd1 sgbd2
Create table test2(ID int , nem int foreign key references test1(nem))
SELECT nom FROM tarik WHERE CIN BETWEEN 125 AND 154
SELECT nom FROM tarik INNER JOIN chadia ON tarik .nom= chadia .nom
ALTER TABLE tarik ADD CONSTRAINT c1 CHECK (ID > 0 AND nom='ouahmani')
declare @a int
begin
declare @x int
declare @a int
select @x = 525
select @a = 154 + @x
select @a as 'variable '
end
exec no_parametre
create proc parametre(@nom varchar(20),@prenom varchar(20))
as
if(select * from client where nom = @nom and prenom = @prenom)
select * from client where nom = @nom and prenom = @prenom
else
print'client ne trouve pas'
exec parametre 'ouahmani','tarik' -- afficher les informations de client qui s'appele tarik
ouahmani