- 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
推薦閱讀
- 潮流:UI設計必修課
- GeoServer Cookbook
- PyTorch自然語言處理入門與實戰
- Designing Hyper-V Solutions
- Linux Device Drivers Development
- D3.js By Example
- RealSenseTM互動開發實戰
- Qt5 C++ GUI Programming Cookbook
- RubyMotion iOS Develoment Essentials
- SpringBoot從零開始學(視頻教學版)
- 零基礎輕松學C++:青少年趣味編程(全彩版)
- Mastering ASP.NET Core 2.0
- FusionCharts Beginner’s Guide:The Official Guide for FusionCharts Suite
- 軟件再工程:優化現有軟件系統的方法與最佳實踐
- Game Development Patterns and Best Practices