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