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 > Datetime Format

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-02-04, 04:47
Marcorgan Marcorgan is offline
Registered User
 
Join Date: Sep 2004
Posts: 2
Question Datetime Format

Hi, i'm new in this forum
I've a strange problem. I've a datetime field that doesn't come updated properly.

With this code

UPDATE table SET field = '2004-09-02 10:48:15' WHERE field2 = 1

the new value of field is

2004-09-02 15.__.__

why ???!?

p.s. : sorry for my english..i'm Italian
Reply With Quote
  #2 (permalink)  
Old 09-03-04, 16:39
Steve T. Steve T. is offline
Registered User
 
Join Date: Sep 2003
Location: So. Cal. USA
Posts: 142
Hi, M! I am new, too. The SQL looks okay to me, so that makes me suspect the field type or field configuration. Try submitting to TEXT/BLOB field instead to double-check and then create another datetime field and try again...

UPDATE tablename SET fieldtextfield = '2004-09-02 10:48:15' WHERE field2 = 1
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