Yanor.net/
Wiki
Blog
GitHub
Sandbox
開始行:
* 3つのテーブルを結合 [#s1746a0e]
SELECT order.* FROM order JOIN order_detail ON order.id ...
WHERE goods.name = 'book'
$rs->search({
"goods.name" => 'book',
},{
join => {order_detail => 'goods'}
});
終了行:
* 3つのテーブルを結合 [#s1746a0e]
SELECT order.* FROM order JOIN order_detail ON order.id ...
WHERE goods.name = 'book'
$rs->search({
"goods.name" => 'book',
},{
join => {order_detail => 'goods'}
});
ページ名: