MySQL Forums
Forum List  »  Italian

Conversione Stringa a Datetime
Posted by: Fabio Petito
Date: August 01, 2008 08:51AM

Ciao a tutti,
sto cercando di convertire una stringa in datetime senza riuscirci, forse perchè la stringa non è molto standard, esempio:
data
------------------
(1-8-2008 - 16.24)

con queste funzioni:
replace(replace(trim(REPLACE(REPLACE(data,'(',''),')','')),'.',':'),' - ',' ')

data
--------------
1-8-2008 16:24

Solo che non riesco a utilizzare la funzione STR_TO_DATE(colonna, format), qualcuna saprebbe consigliarmi??

grazie in anticipo!

Options: ReplyQuote


Subject
Views
Written By
Posted
Conversione Stringa a Datetime
5572
August 01, 2008 08:51AM


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.