sql 如何理解
select a.user_name,a.over,(select over from user2 b where a.user_name=b.user_name) as over2 from user1 a; 這個sql怎么理解呢?
select a.user_name,a.over,(select over from user2 b where a.user_name=b.user_name) as over2 from user1 a; 這個sql怎么理解呢?
2016-01-14
舉報
2017-09-12
sql 語句的自身連接
2016-01-16
不知道回答的對不對哦
2016-01-16
將user1表重命名為a表,從a表中查詢出a的user_name字段,over字段和從user2表即b表中查到的滿足a的user_name等于b的user_name的over2字段,表面意思就是這樣,在a表和b表中都有的字段