1

how to insert values selected from another table using nested query

1
  • What database system (RDBMS) are you using? What are the tables you want to query and the table you want to insert to? Commented Jun 30, 2010 at 10:11

1 Answer 1

2

may be following will help you :

INSERT california_authors (au_id, au_lname, au_fname)
SELECT au_id, au_lname, au_fname
FROM authors
WHERE State = 'CA'

more : Using INSERT and SELECT

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.