Garayed.com  

Go Back   Garayed.com > mySQL
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-15-2007, 04:14 PM
Netlurker
 
Posts: n/a
Default Datediff not working

I have been banging my head against the wall on this... I cannot get a
datediff statement to work. Even a copy and paste of the examples from
the manual for 5.0 doesn't work either.

Example:

mysql> SELECT DATEDIFF('1997-12-31 23:59:59','1997-12-30');
ERROR 1064 (00000): 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 '('1997-12-31 23:59:59','1997-12-30')' at line 1

Version of mysql:

mysql Ver 14.12 Distrib 5.0.16, for pc-linux-gnu (i686) using readline
5.0

Any ideas? Thanks,

- Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:17 PM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.