I have this date format: 2011-09-28 18:01:00 (in varchar), and I want to convert it to datetime changing to this format 28-09-2011 18:01:00. How can I do it?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- What is the best way to cache a table from a (SQL)
- php PDO::FETCH_ASSOC doesnt detect select after ba
You can have all the different styles to
datetime conversion
:http://www.w3schools.com/sql/func_convert.asp
This has range of values :-
For style values,
Choose anyone you need like I needed 106.
With all the existing my answer has a specific link to the help site so that even a beginner can refer to. That's how more useful
Like this