
Originally Posted by
transio
Something like this?
UPDATE tableDates SET _Dates = CURRENT_DATE - INTERVAL 1 MONTH WHERE _Dates IS NULL;
Thanks Sir, but I need select `_Dates` value.. not update `_Dates` value...
_tableDates example #1
Code:
ID _DATES NUMBER
1 2010-02-01 33
2 2010-02-02 36
In this table I don't have `_Dates` with current month (3) and I need select current month -1 (2).
_tableDates example #2
Code:
ID _DATES NUMBER
1 2010-02-01 33
2 2010-02-28 36
3 2010-03-01 36
In this table I have `_Dates` with current month (3) and I need select current month (3).
Can you help me?
Bookmarks