Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UPDATE & ?

Status
Not open for further replies.

vlukes

Programmer
Mar 6, 2008
9
0
0
CZ
So, please, help me... I want to use question mark in UPDATE (in 4GL) - for example:

...
LET text =
UPDATE qwerty SET col01 = ?, col02 = ?';
PREPARE prp01 FROM text;
EXECUTE prp01 USING 'sl01', 'sl02';
...

Fajn, so, how can I replace table name ("qwerty") by question mark (UPDATE ? SET...) ???
Thanks.
 
I don't think you can use a parametized table name.
Use a variable instead:
LET t = "qwerty";
LET text = "UPDATE " || t CLIPPED || " SET col01 = ?, col02 = ?";

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top