Copy Data out of Table in an other Table within same DB

M

Marcel Stoop

Hi

I've got a small Problem. I want to copy several rows out of (Ms SQL) Table
A into Table B. Table A and B are the same and are within the same DB
Is that possible?

Thanks for the help

Marcel
 
N

Norman Yuan

Simply run a "INSERT INTO ...SELECT ..." query.

For example:

INSERT INTO tblA (Field1,Field2,...) SELECT Field1,Field2,... FROM tblB
WHERE <your condition>
 
M

Marcel Stoop

Thanks for the help.

Marcel

Norman Yuan said:
Simply run a "INSERT INTO ...SELECT ..." query.

For example:

INSERT INTO tblA (Field1,Field2,...) SELECT Field1,Field2,... FROM tblB
WHERE <your condition>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top