2.6. 交叉查詢
注意
SELECT *
FROM weather, cities
WHERE city = name; city | temp_lo | temp_hi | prcp | date | name | location
---------------+---------+---------+------+------------+---------------+-----------
San Francisco | 46 | 50 | 0.25 | 1994-11-27 | San Francisco | (-194,53)
San Francisco | 43 | 57 | 0 | 1994-11-29 | San Francisco | (-194,53)
(2 rows)SELECT city, temp_lo, temp_hi, prcp, date, location
FROM weather, cities
WHERE city = name;Was this helpful?