- 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
推薦閱讀
- Android項目開發(fā)入門教程
- 兩周自制腳本語言
- Visual Basic程序設計教程
- Spring Cloud、Nginx高并發(fā)核心編程
- PLC編程及應用實戰(zhàn)
- Quarkus實踐指南:構建新一代的Kubernetes原生Java微服務
- Linux操作系統(tǒng)基礎案例教程
- Jenkins Continuous Integration Cookbook(Second Edition)
- Unity UI Cookbook
- Android開發(fā)三劍客:UML、模式與測試
- Scratch趣味編程:陪孩子像搭積木一樣學編程
- Swift語言實戰(zhàn)晉級
- OpenCV 3 Blueprints
- Puppet 5 Beginner's Guide(Third Edition)
- 前端架構設計