sql server - Escaping colon in SQL DELETE LIKE -


i trying delete rows in second column contains hour 23:59:00.

int      datetime |1 |          2       | 125 2010-12-27 00:00:00 120 2011-12-27 00:00:00 84  2012-12-26 00:00:00 108 2013-12-26 00:00:00 139 2013-12-26 23:59:00 73  2014-12-26 00:00:00 140 2014-12-26 23:59:00 

i have tried command

delete date '%23:59:00' 

but isn't working. have escape colon or should find way of identifying rows?

this should work:

...where datepart(hh, [date]) = 23 , datepart(mi, [date]) = 59 

reference


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -