We are upgrading our Oracle server to 10g. The code below works with previous versions of Oracle, but with 10g it generates the following error:
"ORA-01788: CONNECT BY clause required in this query block"
Here's the code:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
select level, classn_id, classn_classn_id, classn_type, code, description
from mas.classifications
where classn_classn_id is null
union
select 0,0,0,'0','0','General Explanatory Notes' from dual
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Does anyone have any suggestions?
Thanks.
Regards,
Steve
"ORA-01788: CONNECT BY clause required in this query block"
Here's the code:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
select level, classn_id, classn_classn_id, classn_type, code, description
from mas.classifications
where classn_classn_id is null
union
select 0,0,0,'0','0','General Explanatory Notes' from dual
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Does anyone have any suggestions?
Thanks.
Regards,
Steve