I am trying to execute this conditional statement from a string, but I always get errors.
Is there a way to CAST or CONVERT this varchar to a logical string?
i am using sql server 2000
Declare @myQuery varchar(100)
SET @myQuery= '3043=3043 OR ( 3043=97 AND 0=8065 ) OR 3043=1853 OR 3043=5749'
if(@myQuery) select 'ok'
Aucun commentaire:
Enregistrer un commentaire