I need to move data from one table to another. The two tables have identical structures. Obviously I can use:
However one column needs to change. Is there a way to plug in this new value during the INSERT INTO statement or am I stuck having to update every row that was inserted?
Example:
Table 1 has the following column values:
1. 4/1/2006 8:01:56 AM
2. 15000
3. 20000
Table 2 needs to have:
1. 4/1/2006 8:00:00 AM
2. 15000
3. 20000
Thanks
Code:
INSERT INTO Table 2 SELECT * FROM Table 1
Example:
Table 1 has the following column values:
1. 4/1/2006 8:01:56 AM
2. 15000
3. 20000
Table 2 needs to have:
1. 4/1/2006 8:00:00 AM
2. 15000
3. 20000
Thanks