Quote:
|
Originally Posted by ronenshi
yes i need to had time to a date function
like select date(<col type timestamp>) + 3 hours (3 is a parameter)
can u specify the full select cause i tried it and it didnt work
10x
|
I'm still not 100% clear on what you're trying to do.
DATE(timestamp) will return the date portion.
You can't add hours to a DATE though, only days, months, etc. But you can add hours to the timestamp before you apply it.
So
DATE(CURRENT TIMESTAMP + 3 HOURS)
or
DATE(CURRENT TIMESTAMP) + 1 DAY
should both work... replacing CURRENT TIMESTAMP with what I presume is your TIMESTAMP column.