Skip to content

Commit 1a317bf

Browse files
committed
SqlToJsonParser
1 parent 9844475 commit 1a317bf

File tree

12 files changed

+51
-56
lines changed

12 files changed

+51
-56
lines changed

.idea/workspace.xml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

input.txt

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
1-
SELECT
2-
EC_CLPS_DV_CD as STAFF_GBN,
3-
EC_NM as STAFF_CLASS,
4-
EC_GRP as ORG_STAFF_GBN,
5-
ODR as ORDER_SEQ,
6-
ORGZ_ID as ORG_ID,
7-
EMP_NO as STAFF_EMP_ID,
8-
USE_AYN as USE_YN,
9-
REG_DTM,
10-
RGR_ID,
11-
UPDT_DTM,
12-
UTUR_ID
13-
FROM ETCH005M
14-
WHERE EC_CLPS_DV_CD IN
1+
SELECT * FROM
152
(
16-
SELECT EC_DV as staff_gbn
17-
FROM ETCH004M
18-
WHERE
3+
SELECT A, B, C
4+
FROM SUBQUERYTABLE
5+
WHERE CONDITION IN ('A', 'B', 'C') AND
6+
CONDITION IN
197
(
20-
TO_DATE (SCH_REG_DT , 'YYYY-MM-DD') BETWEEN TO_DATE (SYSDATE, 'YYYY-MM-DD') AND
21-
TO_DATE (SYSDATE, 'YYYY-MM-DD')
8+
SELECT CONDITION FROM ANOTHER
9+
UNION
10+
SELECT CONDITION FROM UNIONTABLE
2211
)
23-
GROUP BY EC_DV
24-
UNION SELECT EC_CLPS_DV_CD as staff_gbn
25-
FROM ETCH005M
26-
WHERE NVL (USE_AYN, 'Y') <> 'N'
2712
)
28-
ORDER BY ODR
13+
UNION ALL
14+
(
15+
SELECT * FROM TAB2
16+
UNION
17+
SELECT * FROM TAB3
18+
)
293 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)