Hi,
We have an application written in powerbuilder with oracle database. Now we have moved to Postgres instead of oracle so we had to make few changes in our sql queries. But in the sequence there is this problem:
In oracle it was ..
SELECT "sqorgid".NEXTVAL
INTO :ll_org_id
from dual
USING sqlca ;
But in postgres there is no need for dual and query should be in this form..
SELECT NEXTVAL('sqorgid')
INTO :ll_org_id
USING sqlca ;
but it is giving error in powerbuilder, it seems like powerbuilder needs 'from' clause.
Please tell me how to modify this select stmt so that it work in the powerbuilder.
Thanks
We have an application written in powerbuilder with oracle database. Now we have moved to Postgres instead of oracle so we had to make few changes in our sql queries. But in the sequence there is this problem:
In oracle it was ..
SELECT "sqorgid".NEXTVAL
INTO :ll_org_id
from dual
USING sqlca ;
But in postgres there is no need for dual and query should be in this form..
SELECT NEXTVAL('sqorgid')
INTO :ll_org_id
USING sqlca ;
but it is giving error in powerbuilder, it seems like powerbuilder needs 'from' clause.
Please tell me how to modify this select stmt so that it work in the powerbuilder.
Thanks