Link to home
Start Free TrialLog in
Avatar of 1jaws
1jawsFlag for United States of America

asked on

snytax problem

I have a insert into statement that I want to add a if else statement in it..

parameter @ check bit

insert into tblsome  empname
...... if (check = true) give me the value of  as @empname else null ...

what is the snytax for that in tsql?
ASKER CERTIFIED SOLUTION
Avatar of tim_cs
tim_cs
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Should be @check
Avatar of 1jaws

ASKER

thank you