摘要:
Transect-SQL 语言 函数学习 一、聚合函数 解释: 对一组值执行计算,并返回单个值。 1、APPROX_COUNT_DISTINCT() 功能:返回组中唯一非空值的近似数,比count(distinct)效率高,特别适合大数据,统计某一列有多少个不一样的值,另外有错误概率。 演示例子: 阅读全文
摘要:
T-SQL 查询学习及语言元素 一、select 1、select 常规 表示例(学生表)student1: 检索行和列: select * from student1 select 搭配列计算: select sname,age+1 as age_update from student1 结果: 阅读全文