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.
如何使用 pdo notorm 实现以下查询?
mysql_query("DELETE FROM table WHERE (down-up)>=some value AND id=$id");
我知道下面的语句将删除 id 值为 $id 的选定行。但是我很困惑,如何(down-up)>=some value在删除语句中检查条件。
(down-up)>=some value
$row = $db->table[$id]; $affected = $row->delete();
请帮帮我。
尝试这个
$notORM->tablename("id", $id)->where("down-up >= value")->delete();
我没有测试过,如果有问题请告诉我。