MySQL Forums
Forum List  »  Newbie

Re: CURRENT_DATE usage question
Posted by: Jay Pipes
Date: June 24, 2005 10:27AM

Don't use quotes around CURRENT_DATE().

SELECT
internallocation.LocationName
, breed.BreedName
, animal.DateBroughtIn
FROM breed, animal, internallocation
WHERE breed.ID = animal.BreedID
AND internallocation.ID = animal.ShelterLocation
AND animal.DateBroughtIn = CURRENT_DATE();

Jay Pipes
Community Relations Manager, North America, MySQL Inc.

Got Cluster? http://www.mysql.com/cluster
Personal: http://jpipes.com

Options: ReplyQuote


Subject
Written By
Posted
Re: CURRENT_DATE usage question
June 24, 2005 10:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.