2019-04-07から1日間の記事一覧
Rubyスキルがほぼ0なのですが、Rubyでサブクエリを書く必要があったので備忘録として… どんなクエリ書きたいの? select * from hoge_hoge where hoge_id in (select hoge_id from hoge_hoge where type = 'Hoge' and hoge_aaa_id = 100) and type = 'Hogeee…
Rubyスキルがほぼ0なのですが、Rubyでサブクエリを書く必要があったので備忘録として… どんなクエリ書きたいの? select * from hoge_hoge where hoge_id in (select hoge_id from hoge_hoge where type = 'Hoge' and hoge_aaa_id = 100) and type = 'Hogeee…