0

我有一个查询,在执行时会出现以下错误。

从字符串转换日期和/或时间时转换失败。

查询是

SELECT EMPLOYEE_NUMBER 
FROM PER_PERSON 
WHERE IS_ACTIVE = 'Y' 
AND '31-01-2022 00:00:00' 
BETWEEN EFF_START_DATE and ISNULL(EFF_END_DATE, '31-01-2022 00:00:00')  
AND ANALYST = (SELECT USERNAME FROM SEC_USER WHERE USER_ID = '100061')

附上截图供参考。

截图sql

TIA

4

0 回答 0