3
我做这个选择:的MySQL获得唯一键的同时选择
select code,name from talbe1
union all
select code,name from table2
的实际代码心不是对我很重要,但什么是对我来说重要的是,代码列将是唯一的列,以及与此选择我不能承授人吧.. 是否有保存Word /东西会给我这样的事情:
select getUniqueCode(),name from(
select name from talbe1
union all
select name from table2)
感谢。