Click here to Skip to main content
16,021,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am in a need where i have to copy one entire column in a table and to insert that column in to another table using c#.can anyone please help?
Posted
Comments
DaveAuld 13-Dec-11 5:58am    
I take it you mean a database table?

1 solution

use

Insert into Table1 (column-name) select column-name from Table2;

Also the data-type of the two columns should me same.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900