salut j 'ai le code suivant
mais bien sur il ne fonctionne pas

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
declare @toto varchar(10)
 
set @toto=select STOGEO from MABASE
where champ1=750c and champs2=4010a0112 and champs3="20061025"
and champs4=0
print @toto
go
comment puis je mettre dans ma variable toto le resultat de ma requete
merci