| SQL - Questions and Answers Have a SQL question? Post it here. First do a search to see if someone hasn't already answered it. |
|
|||
SQL ServerCan u plz solve the below mentioned query.
use pubs declare @String varchar(100) set @String = '''CA'',''KS'',''TN'',''OR''' print @String select * from dbo.authors where state in (@String ) The select statement is no displaying data. Where as when we print the value of @String, it willcome correct, but with select statement it is not working. Plz resolve this for me. |
|
|||
|
Hi,
Please use the below Query... Quote:
|
![]() |
| Thread Tools | Search this Thread |
|
|