- Oracle SQL Developer
- Ajith Narayanan
- 92字
- 2021-07-16 09:39:06
Command-line interface for SQL formatting
As an alternative to using the SQL Developer graphical interface for formatting, put an .sql file or all .sql files in a directory or folder.
Before invoking the command-line interface for SQL formatting, start the SQL Developer graphical interface so that the database, that is SQL Formatter preferences (which are used for the formatting), is loaded and available.
The following example takes the SQL code in C:\Performance_Issues\MyScript.sql
and creates C:\Performance_Issues\MyScript_Out.sql
containing the formatted code. (Enter the command in one command line.):
C:\sqldeveloper\sqldeveloper\bin>sdcli format input= C:\Performance_Issues\MyScript.sql output= C:\Performance_Issues\MyScript_Out.sql
推薦閱讀
- Mastering Selenium WebDriver
- jQuery從入門到精通 (軟件開發視頻大講堂)
- Visual C++數字圖像處理技術詳解
- Serverless computing in Azure with .NET
- 大數據分析與應用實戰:統計機器學習之數據導向編程
- Mastering Data Mining with Python:Find patterns hidden in your data
- C/C++程序員面試指南
- Building Microservices with .NET Core
- Linux Shell核心編程指南
- 移動互聯網軟件開發實驗指導
- 現代C++編程實戰:132個核心技巧示例(原書第2版)
- 寫給程序員的Python教程
- Learning Android Application Testing
- Spring Data JPA從入門到精通
- 虛擬現實建模與編程(SketchUp+OSG開發技術)