Microsoft
Software
Hardware
Network
Question : converting a long to a varchar
Hi,
I have what I believe is a gregorian or unix date coming through from my database.
I want to convert it to a long but am not a mysql developer.....
Can someone one tell me how I would convert myfield from a long to a varchar in mysql?
Thanks
Answer : converting a long to a varchar
please check out your options:
http://dev.mysql.com/doc/r
efman/5.1/
en/date-an
d-time-
fun
ctions.htm
l
likely, the FROM_UNIXTIME():
http://dev.mysql.com/doc/r
efman/5.1/
en/date-an
d-time-
fun
ctions.htm
l#function
_from-unix
time
then, DATE_FORMAT:
http://dev.mysql.com/doc/r
efman/5.1/
en/date-an
d-time-
fun
ctions.htm
l#function
_date-form
at
Random Solutions
GridView control scroll bars are not visible on page reload
Filling a TextBox on a Form with Data from a Field from an SQL Database Table in Visual Studio 2008
HELP! Windows SBS 2008 server keeps hanging URGENT!
AJAX Refresh on Submit of Pop Up Window
Sharepoint Webpart page load event issue
Impersonate a logged on user
SQL Stored Procedure pass in a list
OCS Edge Server R2 2007
Exhange 2003 mailbox permissions
Cisco Unity Express to Trigger MWI on overlay DN