sql server 2008学习(二)基本查询
2016-05-12 17:34
246 查看
use db01 ----简单查询语句---- -- * 代表查询所有列 select * from salary --查询指定列 select S_ID from salary --查询后对字段进行重命名,使用 as select S_date as 日期,S_totalsalary as 总工资 from salary ----条件查询---- --比较运算符 select S_ID,S_actualsalary as 实发工资 from salary where S_actualsalary>2
相关文章推荐