官方没有这个功能! 是不是很不人性化, 类似 VS #region #endregion 的功能很方便 , 不过机智的宝宝想到一个黑科技可以实现此功能 . 很简单 就是 ; begin -- end
适用于非功能性sql语句 , 比如好多查询的sql语句 , 为了查看方便可以这样用
如果是功能性sql语句 可以通过第二行之后的语句都缩进一个table, 会自动出现折叠符
注意要在begin后边最好写点注释 否则可能不会出现折叠符号
折叠之前 :
begin --L_Menu 表
select * from Meeting order by M_CreateTime desc
select * from Meeting
select * from L_State
select * from Big_Flow where Name like '%立法计划%'
select * from L_Menu where name ='研究审定'
select * from L_Menu a join Big_Flow b on a.[Big _Flow]=b.Id where a.name='计划建议'
select name from L_Menu where PK_ID is null
select a.name,b.name,* from L_Menu a join L_Menu b on a.Id=b.PK_ID where a.[Group]=6
select top(5) * from