MySql INTERVAL geeft error

Pagina: 1
Acties:

  • DiLDoG
  • Registratie: Oktober 2002
  • Laatst online: 15-04 11:31
code:
1
INSERT INTO `banlist` ( ip, name, added, expires, addedby, reason) VALUES ( '36.13.23.157', 'Test', NOW(), NOW() + INTERVAL 1 WEEK, '1', 'test blabla');
geeft:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WEEK, '1', 'tetssdf')' at line 3

terwijl hij
code:
1
INSERT INTO `banlist` ( ip, name, added, expires, addedby, reason) VALUES ( '36.13.23.156', 'OtherTest', NOW(), NOW() + INTERVAL 1 YEAR, '1', 'Blabla hoera');
zonder problemen uit voert
misschien ben ik wel heel erg scheef, maar ik zie echt niet waarom hij die error geeft. volgens de manual klopt WEEK toch echt :?

  • DiLDoG
  • Registratie: Oktober 2002
  • Laatst online: 15-04 11:31
hm heb t al gevonden
"The values QUARTER and WEEK are allowed as of MySQL 5.0.0."

sorry. ;)