Let’s consider this basic insert
insert into TableName (Col1,Col2,Col3) values (Val1,Val2,Val3)
i want this insert to be done only if Val1 !=null and Val3!=null
How to accomplish this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Is this what you’re looking for?
On second thought BeachBlocker’s answer is quite nice too. I’ve modified it a little: