Table 2 Table copy data

INSERT INTO TABLE_B  SELECT * FROM TABLE_A; burda alanları aynı olan tablodan tabloya aktarım olayı.
INSERT INTO TABLE_B (NAME, PHONE) SELECT NAME, PHONE FROM TABLE_A; Table A dan Name ve phone alınıp Table B ye eklenir.
Commit unutmayalım.

Leave a Reply

You must be logged in to post a comment.