oracle一个sql查询语句:select a.dqbm 电器编码,a.dqmc 电器名称,b.ghdw 供货单位,a.xsrq 销售日期,a.xssl 销售数量,a.xsje 销售金额 from vw_dqxs a,ghdw b where a.dqbm=b.dqbm and dqbm in('7548','3422') and a.xsrq between '20130101'and '20130201' (注释:销售金额、销售数量、电器编码为number,其他为varchar2)。 将这条语句稍微整理一下,更好看些。
from vw_dqxs a,ghdw b
where a.dqbm=b.dqbm and dqbm in('7548','3422')
and a.xsrq between '20130101'and '20130201'
(注释:销售金额、销售数量、电器编码为number,其他为varchar2)。
将这条语句稍微整理一下,更好看些。