一、类型别名
类型别名用来给一个类型起个新名字。
type s string;
let str: s "123";type NameResolver () > string;:
// 定义了一个类型别名NameResolver,它是一个函数类型。这个函数没有参数,返回值类型为string。这意味着任何被…
1.select sum 汇总
select key1 key2 sum ( case zhiduanwhen 1 then suliang1when 2 then suliang2end
) as cnt
from table
where satue in (1,2)
order by key1 key2 "必有
group by key1 key2 "必有2.loop 汇总 在loo…