select
lpad(left(mytime,locate(':',mytime)-1),2,'0') as hour,
lpad(substring(mytime,locate(':',mytime)+1,locate(':',mytime,locate(':',mytime)+1)-locate(':',mytime)-1),2,'0') as min,
lpad(right(mytime,length(mytime)-locate(':',mytime,locate(':',mytime)+1)),2,'0') as sec
from mytable;
Wednesday, September 21, 2011
sql: parse time string
to get time parts from time string
Subscribe to:
Post Comments (Atom)
SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss
Got this while connecting to my mikrotik router via ssh Unable to negotiate with <ip address> port <ssh port>: no matching hos...
-
got: Warning: dl() [function.dl]: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_mapscript...
-
getting NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 554 5.7.1 : Relay access denied ? in your zimbra admin go to: server > mta >...
-
On Zimbra (v. 8.6.0_GA_1153) web client, if you've reached your maximum attachment size, as shown in the message below... ... and y...
No comments:
Post a Comment