我对这段代码有疑问,错误是附近的语法不正确,请帮助。
String sql = @"select
C_Date,
L_UID,
min(C_Time) as [login],
max(C_Time) as [logout]
from
tEnter
where
L_UID = "+txtEmpName+"
and
C_Date between '" + dtfrom + "' and '" + dtto + "'
group by
C_Date,
L_UID";