Facing issie in 19c [message #685607] |
Thu, 17 February 2022 01:46  |
 |
nishant87
Messages: 53 Registered: September 2013 Location: india
|
Member |
|
|
i am facing facing with clause after 19c upgrade
WITH t
AS (SELECT v_chr_sernum
AS in_cls
INTO v_chr_sernumdata
FROM DUAL),
t1
AS ( SELECT DISTINCT
REGEXP_SUBSTR (
in_cls,
'[^,]+',
1,
ROWNUM)
names
FROM t
CONNECT BY ROWNUM <=
LENGTH (
REGEXP_REPLACE (
in_cls,
'[^,]'))
+ 1)
SELECT RTRIM (
XMLAGG (
XMLELEMENT (
a,
names
|| ',').EXTRACT (
'//text()')),
',')
v_chr_sernumdata
FROM t1;
I don't know how to handle that?
--moderator update: added [code] tags, please do so yourself in future.
[Updated on: Thu, 17 February 2022 02:02] by Moderator Report message to a moderator
|
|
|
Re: Facing issie in 19c [message #685608 is a reply to message #685607] |
Thu, 17 February 2022 02:05   |
John Watson
Messages: 8805 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
You didn't say what your "issue" is, which makes it a bit hard to assist. However, you have an obvious syntax error: the INTO in your first CTE is wrong.
|
|
|
|
Re: Facing issue in 19c [message #685611 is a reply to message #685610] |
Thu, 17 February 2022 04:21   |
John Watson
Messages: 8805 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
The error "not get compiled and throw error" is a new one to me. Most Oracle errors are of the form ORA-99999.
Apart from that, I've already told you that you can't use INTO in a CTE. You need to fix your syntax before going any further.
|
|
|
|
|