i need to insert 4 column in sql table
fist 2 column i have type remain 2 column i have to get it from another table ..how combine and insert this in single query
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.
You can combine an INSERT with a SELECT statement, passing your values in the select statement.
Assuming you pass the values of the first two columns using parameters @a and @b you can write