SQL Server 2008 关键字大写
我想将 SQL 关键字的所有字母都大写。例如,如果我这样写:
Select *
From EmpMast
我希望它变成:
SELECT *
FROM Empmast
我应该怎么做?
I want to capitalise all the letters that are SQL keywords. For example, if I write this:
Select *
From EmpMast
I want it to become:
SELECT *
FROM Empmast
How should I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您将此代码键入查询编辑器窗口,则此任务将由第三方工具执行。就我个人而言,我建议使用 RedGate 软件中的工具之一。它称为 SQL 提示符。它可以帮助您编写 SQL 查询。这是一个非常宝贵的工具。这是它的链接:
http://www.red-gate .com/products/sql-development/sql-prompt/
If you are typing this code into the Query editor window, this task would be performed by a third-party tool. Personally, I would suggest one of the tools from RedGate software. It is called SQL Prompt. It helps you write your SQL queries. It is an invaluable tool. Here is a link to it:
http://www.red-gate.com/products/sql-development/sql-prompt/