How to convert SQL into activerecord Rails

后端 未结 0 1252
礼貌的吻别
礼貌的吻别 2021-01-05 08:22

My sql that gives me the results I want (a single record from books table).

select * 
from books
where book_number = ? and id not in (select book_id from chec         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题