Wednesday, 10 June 2015

Coping data from one table to another table


static void copy(args _args)
{
    SourceTable sourceTable;
    DestinationTable destinationTable;
    ttsbegin;
    while select sourceTable
    {
      buf2buf(sourceTable,destinationTable)
       destinationTable.insert();
     }
    ttscommit;
}