Guest_imported
New member
- Jan 1, 1970
- 0
Hi All,
I'm trying to substract one date in my database from another date. I know that you can do it in this type of format(mysql> SELECT DATE_SUB("1998-01-01 00:00:00",
INTERVAL "1 10" DAY_HOUR). I got that from the mysql manual. My problem is that the values are not hardcoded in the coding but dynamically obtain from the database. I can't seem to get the right syntax for it to work.
Any suugestions/advice would be appreciated.
Star
I'm trying to substract one date in my database from another date. I know that you can do it in this type of format(mysql> SELECT DATE_SUB("1998-01-01 00:00:00",
INTERVAL "1 10" DAY_HOUR). I got that from the mysql manual. My problem is that the values are not hardcoded in the coding but dynamically obtain from the database. I can't seem to get the right syntax for it to work.
Any suugestions/advice would be appreciated.
Star