摘要:
1,常用分组函数 count()--统计数量,注意空值行null, rownum, rowid -- 统计所有的员工数量 select count(empno) 员工数量 from emp; select count(*) 员工数量 from emp; select count(comm) 阅读全文
posted @ 2021-03-12 09:52
nick-wgh
阅读(493)
评论(0)
推荐(0)
摘要:
1,字符函数 lower()--转换为小写 select lower(ename) from emp; upper() --转换为大写 select upper(ename) from emp; concat() --字符串连接函数 select concat('Mr.', ename) from 阅读全文
posted @ 2021-03-12 09:51
nick-wgh
阅读(117)
评论(0)
推荐(0)
摘要:
1,简单的select语句 select * from emp; 2,使用算数表达式 --求所有员工的全年的基本工资 select empno, ename, sal, sal+100 from emp; -- 求所有员工的(基本工资+奖金)所有工资 select empno, ename, s 阅读全文
posted @ 2021-03-12 09:49
nick-wgh
阅读(27)
评论(0)
推荐(0)

浙公网安备 33010602011771号