IsDate Function in SQL evaluates invalid dates as valid

后端 未结 3 1032
逝去的感伤
逝去的感伤 2020-12-13 21:54

I am running a SQL Statement against imported data from Excel Files. In this SQL I am checking if the users have entered dates properly by using IsDate function. Since this

3条回答
  •  Happy的楠姐
    2020-12-13 22:09

    maybe just check dt's LEN? however, it can not handle cases when the len is valid. maybe input validation should happen in the frontend?

提交回复
热议问题