DATEADD
and GETDATE()
are T-SQL functions used in SQL Server.
You want to use DATE_ADD()
or DATE_SUB()
with NOW()
INSERT INTO chartValues SET timestamp='1353369600', `datetime`= DATE_SUB(NOW(), INTERVAL 1 DAY)
DATE_SUB(date, INTERVAL expr unit)