这是我的查询:
SELECT m_title `title` from members UNION select n_title `title` FROM news
尽管下一个查询成功,但此 sql 查询无明显原因失败:
SELECT id from members UNION select n_id `title` FROM news
可能是什么问题呢?
成员:
id int(11) No None AUTO_INCREMENT Change Drop More
2 member_id int(150) No None Change Drop More
3 m_title varchar(200) utf8_unicode_ci Yes NULL Change Drop More
4 txtshortdetails text utf8_unicode_ci No None Change Drop More
5 txtfulldetails text utf8_unicode_ci No None Change Drop More
6 video_src varchar(200) utf8_unicode_ci No None Change Drop More
7 m_order int(11) No None Change Drop More
8 m_cat int(11) No None Change Drop More
9 m_date datetime No None Change Drop More
10 m_change_date date No None Change Drop More
消息:
n_id int(10) No None AUTO_INCREMENT Change Drop More
2 n_title varchar(200) utf8_general_ci Yes NULL Change Drop More
3 n_details text utf8_general_ci Yes NULL Change Drop More
4 n_pic varchar(200) utf8_general_ci Yes NULL Change Drop More
5 n_order int(11) No None Change Drop More
6 n_date date Yes NULL Change Drop More