pl/sql美化

因为这个问题曾经浪费过俺很多时间,不过今天终于发现一个小技巧,分享给大家,

在上面DDL语句前后加上begin  end哈哈,再美化下试试看,DDL被成功被美化了。

如何通过pl/sql <wbr>beautifier美化DDL语句具体如下:

begin---①
create table productinfo(
productid varchar2(10),
productname varchar2(20),
productprice number(10),
quantity number(10),
category varchar2(10),
description varchar2(1000),
origin varchar2(10)
);
end;--②

如何通过pl/sql <wbr>beautifier美化DDL语句
期待有直接美化的方式,如果有……谁愿意告诉俺,不胜感激O(∩_∩)O~~

------------我是分割线O(∩_∩)O~~--------~d(n_n)b~------------

PL/SQL自动样式

将以下设置,保存为“ PLSQL样式.br ” 文件,使用PL/SQL的 edit --> PL/SQL Beautifier Options 添加这个文件并启用,之后编辑存储过程或者SQL时,CTRL+S(保存)时,就会自动将当前的语句按照设置的格式进行格式化

Version=1
RightMargin=76
Indent=2
UseTabCharacter=FALSE
TabCharacterSize=2
AlignDeclarationGroups=TRUE
AlignAssignmentGroups=TRUE
KeywordCase=1
IdentifierCase=2
UseSpecialCase=TRUE
ItemList.Format=3
ItemList.Align=TRUE
ItemList.CommaAfter=TRUE
ItemList.AtLeftMargin=FALSE
EmptyLines=1
ThenOnNewLine=FALSE
LoopOnNewLine=FALSE
DML.LeftAlignKeywords=FALSE
DML.LeftAlignItems=FALSE
DML.OnOneLineIfPossible=TRUE
DML.WhereSplitAndOr=TRUE
DML.WhereAndOrAfterExpression=FALSE
DML.WhereAndOrUnderWhere=TRUE
DML.JoinSplitBeforeOn=TRUE
DML.InsertItemList.Format=3
DML.InsertItemList.Align=FALSE
DML.InsertItemList.CommaAfter=TRUE
DML.InsertItemList.AtLeftMargin=FALSE
DML.SelectItemList.Format=3
DML.SelectItemList.Align=TRUE
DML.SelectItemList.CommaAfter=TRUE
DML.SelectItemList.AtLeftMargin=FALSE
DML.UpdateItemList.Format=3
DML.UpdateItemList.Align=TRUE
DML.UpdateItemList.CommaAfter=TRUE
DML.UpdateItemList.AtLeftMargin=FALSE
ParameterDeclarationList.Format=2
ParameterDeclarationList.Align=TRUE
ParameterDeclarationList.CommaAfter=TRUE
ParameterDeclarationList.AtLeftMargin=TRUE
RecordFieldList.Format=1
RecordFieldList.Align=TRUE
RecordFieldList.CommaAfter=TRUE
RecordFieldList.AtLeftMargin=FALSE
SplitAndOr=FALSE
AndOrAfterExpression=FALSE

#Db

------------我是分割线O(∩_∩)O~~--------~d(n_n)b~------------

 修复美化文件找不到的问题~~

右键定制,打开美化文件,提示找不到。编辑,另存为,重新载入。OK,呵呵~~

 
原文地址:https://www.cnblogs.com/qiancaofengling/p/3424672.html