The same table data replication may be required in the project. For example, the two records except the date and rowid (automatic number) have the same data. The general method is to read the data and insert it in, even if two SQL statements are executed in the stored procedure, the efficiency is relatively low. Copy data with one statement: Insert Into New_table_name (column1, column2, column3, column4) Select Column1, column2, column3, column4 From Table_name Where ...
New_table_name and table_name point to the same table, so that the same table can be copied. However, some data may need to be copied. In addition, parameters such as getdate () need to be input, which can be as follows:
Insert Into Table_name (column1, column2, column3, column4, column5, column6) Select Column1, column2, column3, column4, Getdate (), ' Test ' From Table_name Where ...
Solve the problem !! Note that the field corresponds to the Data Type !!