两个字段中怎么取一个最小的 复职给另一个表的字段 select case when a<b then a else b end from tb 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select min(col) col from( select a from a union all select b from a) t insert into b(c) select min(col) col from( select a from a union all select b from a) t 判断字符串长度 分段查询统计数量 求一条SQL语句 sql语句更新问题 服务器为2008客户端能用2005远程连接吗? 两个数据库的连接问题!!!! 求助real相减出现的问题!紧急,在线等!!! 在线求一个SQL语句~~~~ 有关累计的 奇怪的查询问题 有关Sql Server2000的备份和恢复? 请教:远程更新表结构 SQL2005中,表里面的字段的合并问题
(
select a from a
union all
select b from a
) t
select min(col) col from
(
select a from a
union all
select b from a
) t