如何格式以对齐在蟾蜍中选择Oracle

发布于 2025-01-24 10:51:55 字数 352 浏览 1 评论 0原文

我正在使用Toad for Oracle 10.6,当我编写这样的SQL语句时:

select *
from table1,
    table2,
    table3
where col1 = 3
and col2 = 5
and col3 = 6;

我每次都使用一个选项卡按钮,并且我想得到类似的东西;

select *
from table1,
     table2,
     table3
where col1 = 3
and   col2 = 5
and   col3 = 6;

但是从视图/格式化选项我找不到在哪里调整 你能帮我吗? 提前致谢!

I'm using Toad for Oracle 10.6 and when I write a SQL statement like this:

select *
from table1,
    table2,
    table3
where col1 = 3
and col2 = 5
and col3 = 6;

I use a TAB button after every AND and I'd like to get something like;

select *
from table1,
     table2,
     table3
where col1 = 3
and   col2 = 5
and   col3 = 6;

but in View/Formatting Options I can't find where to tune
Could you help me?
Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瞄了个咪的 2025-01-31 10:51:55

您为什么要手动格式化代码?使用内置格式化器;调整其设置,使其满足您的需求。

对于您所描述的内容,如下所示:

”在此处输入图像说明“

格式快捷方式是< ctrl + shift + shift + f>

Why would you ever manually format code? Use built-in formatter; adjust its setting so that they fit your needs.

For what you described, it looks like the following:

enter image description here

Formatter shortcut is <Ctrl + Shift + F>.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文