我有一张orders
这样的桌子-
id | bookId
------------
1 3
2 2
3 1
而这books
——
bookId | book
---------------
1 bookA
2 bookB
3 bookC
当我这样做时,他们有什么办法可以让我book
列在下面bookId
吗
select * from orders where id = '1'
所以结果会像 -
id | bookId
------------
1 bookC <------- bookC instead of 3