Hi
I do hope everyone is well.
I am trying to do an insert into sql statement within powerbuilder script. PB2019
I want to copy all the record from sales to sales_history - sales_history has all the fields of sales but in addition a archive_year and a archive_month field
this is the sort of statement i think i need
INSERT INTO sales_history (column1, column2, column3, :li_archive_year , :li_archive_month )
SELECT column1, column2, column3
FROM sales
Any help much appreciated
regards
Andrew
UPDATE -
So - pb2019
dbase sqlanywhere16 - client machine
Awesome thank you for your help, worked perfectly.
as always this community is excellent.
regards and happy Easter
andrew