|
楼主 |
发表于 2024-11-24 17:10:17
|
显示全部楼层
四川省广元市
代码
.版本 2
.支持库 spec
.支持库 eDB
调试输出 (数据库连接1.连接Access (取运行目录 () + “\liushui.mdb”, “”))
调试输出 (“SELECT SUM(amount) AS total_amount FROM orders WHERE name= ” + #引号 + “帮主” + #引号 + “order_date BETWEEN ” + “'2024-11-09' AND '2024-11-10'”)
调试输出 (数据库连接1.执行SQL (“SELECT SUM(amount) AS total_amount FROM orders WHERE name= ” + #引号 + “帮主” + #引号 + “order_date BETWEEN ” + “'2024-11-09' AND '2024-11-10'”, ))
输出
真
* “SELECT SUM(amount) AS total_amount FROM orders WHERE name= "帮主"order_date BETWEEN '2024-11-09' AND '2024-11-10'”
* 假 |
|