"Real software engineers work from 9 to 5, because that is the way the job is described in the formal spec. Working late would feel like using an undocumented external procedure."
Kijk nog eens welke datatype het argument van YEAR() heeft, en welk datatype die kolom heeft.
{signature}
Als je even in de documentatie had gekeken ( http://dev.mysql.com/doc/...ctions.html#function_year ), dan had je gezien dat je YEAR function geen timestamp verwacht maar een date
“Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.”
Ja, sorry, dat is stom van mij. Ik ging er vanuit dat deze een timestamp verwachtte en heb niet verder gekeken. Doe maar op slot, mijn excuses
"Real software engineers work from 9 to 5, because that is the way the job is described in the formal spec. Working late would feel like using an undocumented external procedure."
Deze gaat inderdaad op slot, maar niet omdat je de oplossing nu al hebt, maar omdat je er al vaak genoeg op gewezen bent dat je wel eens wat beter kan zoeken voordat je meteen een topic opent.
“Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.”
Dit topic is gesloten.