I have to copy all column data to another table.I have created a new blank table.How to insert the values in it.I am avoiding writing the column name manually because it contain 35 column name in it.Sequence & name of column are same in both the table..?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
If the tables have the same columns and types, just do;
Demo here.
use following stcript:
for more information see: http://www.1keydata.com/sql/sqlinsert.html
Create table2 with columns and datatype for each column. If the columns match up exactly on both tables, then insert into table2 from table1
Please find my verion . i had same column name in both tables