I have problem with this query
DECLARE @INPUT INT
SET @INPUT = 12345
;
WITH ABCD(SEQ, X, Y)
AS
(
SELECT 1,
@INPUT % 10,
@INPUT / 10
UNION ALL
SELECT SEQ + 1,
Y % 10,
Y / 10
FROM ABCD
WHERE X > 0 OR Y > 0
)
SELECT *
FROM ABCD
ORDER BY SEQ
this query will produce something like this

I want to convert this to Oracle 10g (must valid for 10g)
Thank you
CONNECT BY