达梦数据库(DM)——SQL美化器不是plsq独有的功能,达梦manage客户端管理工具可以

本文介绍了达梦数据库中的SQL美化器功能,它能帮助用户更直观地查看和理解SQL语句。通过快捷菜单或快捷键,用户可以轻松地将紧凑的SQL语句格式化,提高工作效率。在DM的管理工具中,可以找到'格式化'选项,例如通过快捷键ALT+F实现。了解更多详情可访问达梦技术社区。
摘要由CSDN通过智能技术生成

SQL美化器是一个非常实用的功能,尤其对于DBA工程师来说。它最大的作用就是能够直观的查看某个SQL的具体内容,而无需在紧凑的几行代码中逐一查看,既费神又费力。很多初次接触达梦数据库的用户误以为达梦没有SQL美化器的功能,就觉得不好用,实际并非如此。达梦数据库也有SQL美化器的功能。下面一起来和小编看看吧。

CREATE TABLE "TEST"."TEST"("A" INT NOT NULL,"B" CHAR(10),NOT CLUSTER PRIMARY KEY("A")) STORAGE(ON "MAIN", NOBRANCH) ;

以上面的这条SQL为例,默认是一行。在DM的manage管理工具中SQL美化器叫做格式化,有两种方法调用,一种是快捷方式,一种是快捷菜单的方式。

快捷菜单方式调用

选中需要“格式化”显示的SQL语句,右击,依次选择SQL脚本→格式化

格式化之后的效果

快捷键调用

快捷键调用无非就是设置了一个快捷键,快速调用避免在菜单中一步步去选择了。

在manage窗口,选择窗口→选项,打开选项窗口。

在快捷键中找到“格式化(&F)”,默认应该是shift+alt+F,可以删除后自定义一个快捷键,比如alt+F,应用保存设置。

选择需要格式化显示的SQL直接用快捷键ALT+F即可实现。

更多资讯请上达梦技术社区了解:https://eco.dameng.com​​​​​​​

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
SQL代码美化程序 SQL Pretty Printer 3.2.8 Copyright 2005-2011, Gudu Software. All Rights Reserved http://www.dpriver.com -------------------------------------------------------- Overview -------- SQL Pretty Printer is a tool that will help you beautify your SQL code. Using hotkey functionality, SQL Pretty Printer can reformat SQL statements for a wide variety of database tools such as Microsoft Query Analyzer, SQL Server Management Studio (SSMS), TOAD and PL/SQL Developer, development environments such as Visual Studio 2003/2005/2008 and Eclipse, and popular editors such as UltraEditor and EditPlus. In addition to beautifying SQL code, SQL Pretty Printer can translate SQL code into C#, Java, PHP, DELPHI and other program languages. SQL Pretty Printer also includes command line functionality, with the ability to format single files, single directories and multiple directories. SQL Pretty Printer is designed to deal with the syntax used by most popular database systems including Microsoft SQL Server, Oracle, IBM DB2, MySQL and Microsoft Access (Informix, Sybase, and PostgreSQL support is currently in development). Output conforms to most of the entry level SQL99 Standard. Add-Ins for SSMS and Visual Studio 2003/2005/2008/2011 are available. APIs for dotnet and COM version are available. features: ** Beautifies SQL statements utilizing highly customizable format options. ** Formats SQL on-the-fly in popular tools and editors using hotkey functionality. ** Minimizes to the system tray for quick access. ** Includes a command line for batch conversion of single files, single directories or directory trees (use the command line API in your own program!) ** Verifies SQL syntax with detailed error information. ** Converts monochrome SQL code into colorful RTF document. ** Converts monochrome SQL code into colorful HTML for easy placement in blogs and forums. ** Converts SQL to various programming languages including C#, Java, DELPHI, PHP and others. ** Currently supports SQL syntax for Microsoft SQL Server, Oracle, IBM DB2, MySQL and Microsoft Access (Informix, Sybase, and PostgreSQL support is currently in development). ** Add-In for SQL Server Management Studio available. ** Add-In for Visual Studio 2003/2005/2008 available. Requirements ------------ Pentium class CPU or higher Windows 95/98/NT/2000/XP/Vista/win7
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

fcwr230

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值