Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Doophp 框架的新手。我想编写以下要在 Doophp 中执行的 SQL 查询。但我找不到任何合适的教程或参考资料。查询如下;
SELECT * FROM m_company WHERE comp_idLIKE %$search%OR comp_kanaLIKE %$search%OR comp_personLIKE%$search%
m_company
comp_id
%$search%
comp_kana
comp_person
在 Doo db SmartModel 中,您可以使用“自定义”参数,如下所示:假设您有一个模型“公司”,因此在控制器中
$this->loadModel("company"); $c = new company; $company = $c->find(array("select" => "what you want", "where" => "your statement"));
再见