Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set variable datetime_format

Status
Not open for further replies.

ofcalcul

IS-IT--Management
Sep 28, 2004
24
RO
I have to set the datetime_format variable from "" to "%Y%m%d%H%r%s".
My MySQL server's version is 4.1.14.
I tried to put
setvariable = datetime_format=%Y%m%d%H%r%s in the my cnf or my.ini file and it doesn't work.
Do you have any suggestions?

Thank you,
Cristian
 
In the MySQL online manual, the system variable datetime_format is described as "This variable is not implemented" for all versions.




Want the best answers? Ask the best questions! TANSTAAFL!
 
On my first mysql server, when I get a date, I get something like '20060711184031'.
On this one I get "2006-07-11 18:40:31".
I need to make the second one have the format like the first one.
One difference i found between the server was that the first one didn't have datetime_format at all and the second one had the datetime_format like the date it gets.
 
I have to specify that my field's format is timestamp!
 
My column's type is TIMESTAMP. The versions are not the same, suddenly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top