【问题标题】:How to format SQL with multiple variables per line in SSMS or DataGrip如何在 SSMS 或 DataGrip 中每行使用多个变量格式化 SQL
【发布时间】:2017-03-03 13:32:07
【问题描述】:

SSMS 或 DataGrip 中是否有一个 sql 格式化功能,可以格式化每行包含多个变量的表达式? / sql insert 和 select 语句的多列?

喜欢

insert into many_col_tbl
( col_1,       col_2,      col3,
  ...
  col_99,      col_100,    col101)
values
( @col_1,      @col_2,      @col3,
   ...
  @col_99,     @col_100,    @col101)   

我在 T-SQL 生态系统中工作。

【问题讨论】:

    标签: sql format ssms datagrip


    【解决方案1】:

    SSMS 中不支持 SQL 格式化,但这可以通过外部插件实现,例如 f.eks Apex SQL Refactor

    【讨论】:

      猜你喜欢
      • 2017-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多