September 27, 2010 at 4:36 pm
Hi all,
My querey :
Decalre @international SMALLINT
I am Getting @International from some other table in my cursor
The requirement is if @international is NULL it should be 'N'
If it is not null then it should insert @international value which i got above (from what ever joined tables)
Then i am doing an Insert
Insert Into Table_XYZ
Values(1,'Abc','USA',ISNULL(@International,'N',@international) )
Error:THE ISNULL Function requires 2 Arguments....
Can some me helpm on this...
Thanks
September 27, 2010 at 4:45 pm
Yes, ISNULL does require only two arguments, you are trying to use 3 arguments.
ISNULL ( check_expression , replacement_value )
Andrew SQLDBA
September 27, 2010 at 4:47 pm
it worked actually
Values(1,'Abc','USA',ISNULL(@International,'N') )
thanks
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy