Access数据库,用一条SQL语句,提取两个表的内容(数据结构相同的字段部分),合并成一个表,并按时间排序. 10
1个回答
2017-08-23
展开全部
Access数据库,用一条SQL语句,提取两个表的内容(数据结构相同的字段部分),合并成一个表,并按时间排序.
SELECT newtable.name,newtable.time FROM (SELECT * FROM (SELECT NAME,TIME FROM table1) UNION ALL (SELECT NAME,TIME FROM table2)) as newtable order by newtable.TIME DESC
SELECT newtable.name,newtable.time FROM (SELECT * FROM (SELECT NAME,TIME FROM table1) UNION ALL (SELECT NAME,TIME FROM table2)) as newtable order by newtable.TIME DESC
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询