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, but DUAL is ready in Informix...
This Informix code (without "t") is ready:
DATABASE xyz;
DEFINE
actual_date DATE,
t CHAR(10),
x CHAR(10),
text CHAR(1000);
MAIN
LET t = 'qwerty';
LET text =
'SELECT CURRENT'||
' FROM dual' CLIPPED...
In Oracle (OK, code is ready):
declare
actual_date date;
t char(10) := 'qwerty';
x char(10);
begin
select sysdate, t
into actual_date, x
from dual;
dbms_output.put_line(actual_date||' '||x);
end;
---------------------------------
In Informix 4GL (error: 201):
DATABASE...
Thanks, but I do not understant...:
"t" is VARIABLE name, no TABLE name...
This is sample in Oracle:
declare
actual_date date;
t char(10) := 'qwerty';
begin
select sysdate, t
into actual_date, t
from dual;
dbms_output.put_line(actual_date||' '||t);
end;
/* result: 10.03.08...
Please, help me...
I have this code - in Oracle:
declare
t char(10) := 'qwerty';
begin
select t
into t
from dual;
dbms_output.put_line(t);
end;
OK, code is ready, but I want use this code in Informix 4GL and there is problem:
DATABASE MyDtb;
DEFINE
t CHAR(10),
c01...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.