Add a row to a table from a similar table.

Call:

ts_table(int iTableDescr, "add_row_from_eq_table", in tiTableFrom, int indexrowfrom, bool bsum);


Here:

iTableDescr - table descriptor to add rows to;

iTableFrom - table descriptor from which to take these rows;

indexrowfrom - index of the starting row in the copied table from which to start adding;

bsum - if true, then add rows as add_row_sum (i.e. if there is a row matching the key column, then simply sum the values ​​in the numeric columns);