Hi,
i found a method to do this:
try
extract(year from date1) - extract(year from date2)
I hope it will work
Michael
-----Ursprüngliche Nachricht-----
Von: Augusto Cesar Castoldi [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Juni 2001 19:06
An: [EMAIL PROTECTED]
Betreff: Getting the number of years between two dates
It's possible get the number of years between two dates in a mysql
function?
thanks,
Augusto
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail
<[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php