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.
我是 MeekroDB 的新手。我有这条线:
DB::query("INSERT INTO order (id, state) VALUES (%i, %s)", $id, $state);
例如 $state = "订单已付款并已交付"。问题是当我执行查询然后去查看数据库时,我看到状态列的值为“orderpaidanddelivered”(没有空格)。我在哪里做错了?
在脚本顶部运行以下命令,所有 SQL 查询都将回显到您的页面上。这使您可以轻松地了解您正在运行的查询。
DB::debugMode();