Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Old 01-26-2005, 02:48 AM   PM User | #1
celestine
Regular Coder

 
Join Date: Oct 2003
Location: Australia
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
celestine is an unknown quantity at this point
Differences in datetime

Hi

I've been reading the MySQL manual datetime function for the past 30 mins but I'm still confused.

I'm trying to select all records from a table where the postdate is later/more recent that a lastlogin time.

I tried using DATEDIFF but got a MySQL syntax error. Can someone advise me. thank you.

Code:
 SELECT *
FROM table
WHERE date >''2005 -01 -25 17 :24 :47'
this query only return one row which has date = '2005-01-25 17:34:25'. I know there should be more rows returned but can't see my mistake.
__________________
Day Dream Graphics
celestine is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:46 PM.

Home - Contact Us - Archives - Link to CF - Resources - Top 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.