Resolved Insert INTO
- How-to
- SQL
- Andrew Davis
- PowerBuilder
- Thursday, 9 April 2020 04:01 PM UTC
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
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.