@State değişkeninin tipi nedir bilmiyorum ama, sanırım int veya char gibi bir değişkene, birden fazla sütundan veri atamaya çalıştığın için oluyor, * yerine hangi sürunu atamak ,istiyorsan onu belirt
örneğin bu kod senin aldığın hatayı alacaktır;
DECLARE @Yas int
SET @Yas= (SELECT * from TblOgrenci WHERE Id=1)
fakat bu kod doğrudur ve hata almayacaktır
DECLARE @Yas int
SET @Yas= (SELECT Yas from TblOgrenci WHERE Id=1)
Only one expression can be specified in the select list when hatası
Only one expression can be specified in the select list when the subquery is not introduced with EXISTS. hatası alıyorum,
tamda bu satırda, yardım lütfen
Yorum Ekleyin