Hi, I'm using DBMS to generate cursors and the output to htp using pl/sql.
Basically, I have a table of questions, eg:
id, q1a, q2a, q2b, q3, etc
and I'm displaying this on the web. It draws it in a table like this:
--variable = question name stuff here
-- parsing the dbms here
-- defining...
I guess it's going to have to be DBMS_SQL, as I'm using version 8.0.5.1.0 ... Damn!! And I thought I was onto a winner with that one...
Thanks anyway ;-)
Can anyone give any advice on using variable within DECODE?
If I use:
SUM(DECODE(saq2a, 1, 1, 0)) "1"
...with saq2a being the column name, it works. If I use:
v_use := 'saq2a';
SUM(DECODE(v_use, 1, 1, 0)) "1"
...it doesn't work because it gives a comparison error. If...
Can anyone give any advice on using variable within DECODE?
If I use:
SUM(DECODE(saq2a, 1, 1, 0)) "1"
...with saq2a being the column name, it works. If I use:
v_use := 'saq2a';
SUM(DECODE(v_use, 1, 1, 0)) "1"
...it doesn't work because it gives a comparison error. If...
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.