If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > mysql is not showing any other datetime result

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-13-04, 13:45
danielnwa danielnwa is offline
Registered User
 
Join Date: Feb 2004
Posts: 5
mysql is not showing any other datetime result

I am a tad confuse with this problem so any help would be greatly appreciated. When I run a query like this

SELECT *
FROM windowevents2 where ComputerName = 'LAB01'

I will only get result for Feb 10 2004, but if I query for a specific date such as

SELECT *
FROM windowevents2 where ComputerName = 'CITY06' and
Datetime = 'Fri Feb 13 13:10:03 2004'

I would get result for that date. Is there a reason why when querry just by ComputerName force mysql to returns only data for only Feb 10 2004? Thanks
Reply With Quote
  #2 (permalink)  
Old 02-15-04, 10:37
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
What data type do you use on Datetime col ?
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #3 (permalink)  
Old 02-17-04, 23:45
danielnwa danielnwa is offline
Registered User
 
Join Date: Feb 2004
Posts: 5
I am using varchar as the data type for DateTime
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

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