Hi,
I'm trying to 'SQL' my PDox 7 application as my database is now on Linux /
PostgreSQL.
In ObjectPAL, I'm trying to write INSERT statements (unsuccessfully)
For example I've got:
inserttxnSQL = SQL
/*
Alias: pg
*/
INSERT INTO ~tablename ("col1","col2") VALUES ('data1', 'data2')
endSQL
But I really want to do something like:
inserttxnSQL = SQL
/*
Alias: pg
*/
INSERT INTO ~tablename ("col1","col2") VALUES (~var1, ~var2)
endSQL
But I just get a General SQL error. What's wrong with the above?
I've been even more unsuccessful creating the INSERT as a string and doing
a readfromString, but maybe I need to go that route? My INSERTs are big and
I quickly reach the 255 char limit for strings.
Any ideas/pointers what is the best way of doing this please?
Thanks again
Stuart