--- title : SQL指令自動排版工具 tags: SQL自動排版 creat-date: 2022-01-04 update_date : 2022-01-04 --- --- # SQL指令自動排版工具 --- ## **Visual Studio 擴充套件:Poor Man's T-SQL Formatter** **備註: Poor Man 只針對 T-SQL,用在其他 DB 如 ORACLE 時會出現警示,執行效果不佳** ### **1. 路徑:工具>擴充功能和更新** ![](https://i.imgur.com/KtMgrGa.png) ### **2. 安裝後,開啟檔案「檔名.sql」,選擇「工具>Format T-SQL Code」** ![](https://i.imgur.com/nERQPRd.png) ### **3. 執行排版後** ![](https://i.imgur.com/ru9WE6D.png) ![](https://i.imgur.com/fUX1uOE.png)