mysql get current date and row date -


On what day is it possible to query SQL and get today's row for the date column?

Say that today is 25th July, I have the date table sales, date of the column name, date = timestamp in the date of the transaction.

I need all the rows that the date of sale is similar to the current date and it is also possible price as GMT + 5?

This will get you all the rows for today's date:

 < Where the sale from code> SELECT * (GMT +5) as the date (now ()) = DATE (DATE_ADD (sales_view, interval 5 hours)) order by sales_transon  

Does the sale date mean with +5 hours or today -5 hours?

EDIT: To add 5 hours to the date of sale, on the updated date column, I use the back-tiex to indicate that this is the name of a column. Select `date` from the sale such as

I did not know how to work back-tick on the date field. But you should get this idea. Wrap your column names with `


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -