【每天进步一点点】 简单查询

来源:互联网 发布:数据采集监控系统 编辑:程序博客网 时间:2024/06/07 06:38
select * from tableName

先执行from子句,确定数据的来源
在执行select子句,进行数据筛选

select distinct jobs from table

去重复,只有当查询的所有列都相同时,才视为重复进行去重

select sal*12 income from table

别名,进行标注

select empno||empname from table

“||”表示连接

0 0