写出查找出2008-3-16日销售总额大于1000元的物品及销售总额的sql select sum(t.s_money) as money,t.p_name from t_table t where t.s_date = to_date( '2008-3-16','yyyy-mm-dd') group by t.p_name ,t.s_date having sum(t.s_money)>1000 写出统计苹果销售总额的sql select sum(t.s_money)as money ,t.p_name from t_table t where t.p_name = 'applet'group by t.p_name 写出销售总额小于1000的物品及销售总额 select sum(t.s_money) as money ,t.p_name from t_table t group by t.p_name having sum(t.s_money)<1000 重命名表t_table字段名:p_name为productname alter table t_table rename column p_name to productname 取oracle 当前系统时间 select to_char(sysdate,'yyyy-mm-dd hh:mi:ss') from dual