摘要:
with fs as ( select database_id, type, size * 8.0 / 1024 size from sys.master_files ) select name, (select cast(round(sum(size),2) as numeric(15,2)) f 阅读全文
摘要:
想对查询出来的结果集再次操作,就可以把查询出来的结果集当成一个临时表 对临时表t1操作 语法:select sum(a), b from ( select a, b ,c from table1 join table2 on table1.a = table2.a where table1.a='1 阅读全文