have a question about SQL:
about the left join implementation of PostgreSQL or MySQL
suppose: table structure
table_name :user
uid name
1
2
3
table_name : age
uid age
1 10
2 20
3 30
4 40
SQL:
1:
SELECT t1.user,t2.age
FROM user t1
LEFT JOIN age t2 ON t1.uid=t2.uid
2:
SELECT t1.user
,(SELECT age FROM age WHERE uid=t1.uid) as age
FROM user t1
:21........unbelievable
skepticism:
1SQL:
:
1. user
2. age
3.
:
1. user
2. userage
3.
~
add:
.
:
SQL1010