帮忙,union的用法,就差一点了!!!
我现在两个表合起来查询,
select id,name from (select * from aspnet union all select * from csharp) c where id=1 order by c.id desc"
这样能把数据库放一个c表里,现在我要的是,选择出的数据是来自哪个表?
select c.name,id,name from (select * from aspnet union all select * from csharp) c where id=1 order by c.id desc"
这么写不对的啊,谢谢各位高手