I have a big table.there are 40 fields.now I want to copy a record.
Firstly I use SQL SELECT statement to get the record data.then I save all the data to 40 temprary variables.finally I use SQL INSERT statement to add all data to a new record.
The problems are listed here.
1.I have to use 40 temprary variables.
2.the INSERT statement is very long(set va=a,vb=b,.....)
3.easy to make mistake.
4.I have to communicate with DB two times.
Do you have a easy way to do this.
Thanks a lot.