SQL读取两个表数据,最终效果
table1
id name in_num in_time num
001 name1 20 2006-12-10 30
002 name2 18 2006-12-10 25
table2
id name out_num out_time num
002 name2 18 2006-12-12 7
001 name1 15 2006-12-13 15
结果
id name in_num in_time out_num out_time
001 name1 20 2006-12-10 18 2006-12-12
002 name2 18 2006-12-10 15 2006-12-13