lundi 19 octobre 2020

Write an conditionally sentence from an Varchar in SQL

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'

I want exec this

Aucun commentaire:

Enregistrer un commentaire