How can I write the following or similar types of queries using Supernatural?
SELECT * FROM A_table WHERE (keyword% like one% or% like keyword%) and C = 1 and D = 5
I And where / & amp;
Ideal:
Where you can nest:
Model: where (function ($ query) {$ query-> where ('a', 'like', 'keyword'); $ query- & gt; or_ where (' B ',' likes', 'keyword');}) - & gt; Where ('c', '=', '1'); It should be created from: SELECT * model from where (one% keyword% or% keyword%) and C = 1 < / Div>
No comments:
Post a Comment