查询块具有不正确的结果列数

select * from(
select t.user_name as name ,
'接收者' as recive ,
t.phone as phone ,
t.context as context,
t.send_time as sendtime ,
t.send_info as sendinfo,
x.yw_name as ywname,
x.sim_sys as simsys
from xmkjmas_sms_send_library t ,xmkjmas_code x where x.code=t.yw_code
union all
select b.user_name as name ,
'发送者' as recive,
b.phone as phone ,
a.context as context,
a.receive_time as receive,
a.context as context,
c.yw_name as ywname ,
[color=red](少了c.sim_sys as simsys)[/color] from xmkjmas_sms_receive_history a,xmkjmas_user b,xmkjmas_code c where a.phone=b.phone
and a.context=c.code)d 

错误的原因是列数的个数不一样!~

你可能感兴趣的:(C++,c,C#)