Copying data in the same DB
yaip
Posts: 4
I have two tables in the same DB. Table 1 has 100 rows and Table 2 has 10. I want to copy data from Table 1, Column 1 to Table 2 Column 1. How?
Comments
If the only column you are left with is the column you are using as a comparison key that should work. Although you will be generating insert statements that contain only that one column - as long as the rest of your columns have defaults this should be fine otherwise you'll have to compare all the columns (assuming they match) or set defaults for the columns not included in the comparison.
HTH
Project Manager
Red Gate Software Ltd