select * from ICStockBill
select FInterID*3.01 from ICStockBill
select FInterID+1 as 列 from ICStockBill
select distinct fdeptid from ICStockBill
//以下是从子查询产生的表中查询,第九章详细阐述现在暂时没看懂
select fdeptid from (select distinct fdeptid from ICStockBill) where fdeptid>335
详细解释:
1.这里主要是看FInterID*3.01,作为数值列可以进行运算输出
select FInterID*3.01 from ICStockBill
2.这里主要是看FInterID+1 和FInterID+1 as 列,作为数值列可以进行运算输出以及别名方式
select FInterID+1 as 列 from ICStockBill
3.这里主要看select distinct 这里是去除重复值
select distinct fdeptid from ICStockBill