I have the following query: select avHours, date_add('2010-01-20', Interval 2 DAY) from tbl_available order by avHours;
select avHours, date_add('2010-01-20', Interval 2 DAY) from tbl_available order by avHours;
but returns a blob field, not a date field. when I see the value in the blob field, this is the correct date.
how can i fix this?
Thanks in advance!
MySQL functions are sometimes converted to BLOBs. You can fix this if you cast the result to a DATE type yourself, for example -
SELECT DATE(DATE_ADD('2010-01-20', INTERVAL 2 DAY))
or
SELECT CAST(('2010-01-20' + INTERVAL 2 DAY) AS DATE)
Source: https://habr.com/ru/post/908673/More articles:Is it possible to make a JNI to evaluate the expansion of wildcards in a classpath? - javahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/908669/corrupted-git-repository-data-stream-error&usg=ALkJrhjvShxDx-cT7v6U2Fg4G91kD4DBzAHow to enable optimization in g ++ C # pragma - c ++OpenCV 2.3.1 Python with Eclipse shows synatx errors, but still works - pythonHow to use code completion in Eclipse using OpenCV - eclipseHow to make an octagonal div? - htmlChange text / tags ggplot legend - rHow can I remove a vector or array in AS3? - arraysip_conntrack_tcp_timeout_established does not apply to the entire subnet - timeoutConvert 2-dimensional array to one-dimensional in C #? - arraysAll Articles