求助 一个关联问题 本帖最后由 wminjay 于 2010-07-29 14:48:17 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select id=aid ,name=aname,type='' from a union allselect bid ,'',btype select id=aid ,name=aname,type='' from A union allselect bid ,'',btype from B 明白你的意思了 不过 a表 选出来的 type 没有类型 b表的type是布尔型的 不能union啊 谢谢了(select aid id ,aname as name ,NULL as type from "A")UNION all(select bid id ,'' as name,btype as type from "B") order by id 关于两个结构完成相同的数据表, 快速比较数据 如此查询语句该如何写? 索引大小有什么用途? load data infile 导入数据总是失败。有人知道为什么吗? mysql5.5 1.备份数据库或表。2.备份为.sql文件 什么时候表的主键需要用自动累加,什么时候不用? 初学者MYSQL的问题,请各位大师指点。 查询最前5条记录? 帮忙看看 22行是什么错误 在创建第2个表时 mysql MySql修改my.ini配置文件后不能启动服务!配置文件恢复之前配置就能启动!为什么?求各位大神解答 郁闷,mysql有什么问题啊 MySql求一语句
union all
select bid ,'',btype
union all
select bid ,'',btype from B
UNION all
(select bid id ,'' as name,btype as type from "B") order by id