1. Problem: PL/SQL beautification cannot parse text
The original SQL statements are as follows:
CREATE OR REPLACE VIEW V_GGXZBM as
SELECT Xzbm,xzmc,case when PARENTXZBM was NULL then ' 320000 ' ELSE parentxzbm END parentxzbm,pxxh from SYS_XZBMB WHERE issh ow= ' 1 '
UNION SELECT ' 320000 ' xzbm, ' All ' xzmc, ' parentxzbm,0 pxxh from DUAL;
Click on the beautification device does not respond, the status bar shows:
PL/SQL beautification cannot parse text or
PL/SQL Beautifier could not parse text
Comment out the first line of statements and click the PL/SQL beautification
--create OR REPLACE VIEW V_GGXZBM as
SELECT XZBM,
XZMC,
Case
When PARENTXZBM was NULL then
' 320000 '
ELSE
Parentxzbm
END PARENTXZBM,
Pxxh
From SYS_XZBMB
WHERE isshow = ' 1 '
UNION
SELECT ' 320000 ' XZBM,
' All ' XZMC,
"PARENTXZBM,
0 Pxxh
From DUAL;
The reason is that the beautification can only beautify the SQL statement.
2. Use the attention point of the beautification device
No statement is full window beautification, select the statement to beautify the selected content
PL/SQL beautification cannot parse text