我正在处理以下查询:
SELECT att.AttendenceCD, convert(varchar, att.AttDate, 101) AttDate, att.EmployeeCD
FROM Attendance att
where att.EmployeeCD = 2234 and att.AttDate = '11/02/2011'如何将此查询转换为HQL?
发布于 2012-10-09 20:39:09
看看这个。我希望它能起作用。
SELECT att.AttendenceCD, convert(varchar(10), att.AttDate, 101) AttDate, att.EmployeeCD
FROM Attendance att
where att.EmployeeCD = 2234 and att.AttDate = '11/02/2011'另一种方式
SELECT att.AttendenceCD, cast(att.AttDate, datetime(101)) AttDate, att.EmployeeCD
FROM Attendance att
where att.EmployeeCD = 2234 and att.AttDate = '11/02/2011'https://stackoverflow.com/questions/9193730
复制相似问题