mysql不支持联合查询吧。
另外,去掉as

解决方案 »

  1.   

    谁来帮忙呀,看看这个sql语句有什么错误select t1.fee, t2.fee from showgood_user_consume_log_0307 as t1, showgood_user_save_log_0307 as t2 where (t1.u_id='1503249' and t1.date<1059552357 and t1.date>1057014357 and t1.status!=0 and t1.fee!=0) or (t2.u_id='1503249' and t2.date<1059552357 and t2.date>1057014357 and t2.status!=0 and t2.fee!=0)怎样才能取到两个表的记录