蠢新求教 :mysql 多表查询问题 我有很多个表的主键都是ID,现在我知道一个ID号要知道他在哪个表,该怎么写查询语句啊?大神就教 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select 't1' as t,id from 表1 where id=123 union allselect 't2' as t,id from 表2 where id=123 union allselect 't3' as t,id from 表3 where id=123 union allselect 't4' as t,id from 表4 where id=123 union allselect 't5' as t,id from 表5 where id=123 双色球查询某个球出现概率 大家进来讨论下mysql的优缺点 有没有sql语句可以做简单的计算 再请教两条MYSQL语句(解决问题立即结贴) 总在sending data阶段耗时过多的sql语句,应该如何优化? 求MySQL帮助文档 请帮忙看一条SQL语句 呵呵,请版主进来,我替你加分! 谁知道,mysql与jsp+tomcat连接的必要条件是什么呀?高手帮忙 Mysql查看默认存储引擎,出现错误 MYSQL UPDATE的奇怪问题 update与select嵌套的问题
select 't2' as t,id from 表2 where id=123 union all
select 't3' as t,id from 表3 where id=123 union all
select 't4' as t,id from 表4 where id=123 union all
select 't5' as t,id from 表5 where id=123