you should put those two dates between single quotes like..
(您应该将这两个日期放在单引号之间,例如。)
select Date, TotalAllowance from Calculation where EmployeeId = 1
and Date between '2011/02/25' and '2011/02/27'
or can use
(或可以使用)
select Date, TotalAllowance from Calculation where EmployeeId = 1
and Date >= '2011/02/25' and Date <= '2011/02/27'
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…