使用PHP > ODBC
警告:odbc_exec():SQL错误:[Microsoft] [ODBC Microsoft Access 驱动程序]参数太少。预期1. SQL状态为07001 SQLExecDirect
$sql='SELECT
CHECKINOUT.CHECKTIME,
USERINFO.Badgenumber,
USERINFO.Name
FROM
CHECKINOUT
RIGHT JOIN
USERINFO ON CHECKINOUT.USERID = USERINFO.USERID
WHERE
c.CHECKTIME >= #'.$dateToday.' 00:00:00# AND c.CHECKTIME <= #'.$dateToday.' 23:59:59#
ORDER BY
CHECKINOUT.CHECKTIME DESC
';
答案 0 :(得分:0)
通过添加{ts}
修复了此代码Emr