I have a smalltimedate column and want to do the equivalent to a wild card search on it and find all rows that have times of 00:00:00 irrespective of the date.
eg
id | col
1 | 2014-01-01 00:01:00
2 | 2014-01-02 00:01:00
3 | 2014-01-03 00:00:00
4 | 2014-01-04 00:00:00
would return
id | col
3 | 2014-01-03 00:00:00
4 | 2014-01-04 00:00:00
What's the easiest way to do this?
WHERE CONVERT(VARCHAR(8),col,108) = '00:00:00'
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다