Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过作为假日表中的主键的 locationID 连接这两个表,并从整个连接表中选择行
我想要一个全选查询,如果您执行结果集操作,您可以从两个表中选择匹配的行。
你会怎么做?
SELECT a.*, b.* FROM Accomodation a INNER JOIN Holiday b ON a.LocationID = b.LocationID
要进一步了解有关联接的更多信息,请访问以下链接:
SELECT * FROM Holiday INNER JOIN Accommodation ON Holiday.LocationId= Accommodation.LocationId