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
Retain selected value from dynamic drop down php
XP 10 inbound connection limit question
OS X Server 10.5 and OS X Laptops Joining accounts to Open Directory?
Cannot pull Data from Oracle using SSIS
How to run db2 script from control center windows
WRT54G2 Linksys router - reset password saving actual configuration
Deploying SharePoint project to Production Server
Net Use returns "System error 64 has occurred. The specified network name is no longer available."
DAG & CAS array configured but it's not failover
Intermittent internet connectivity for PCs in small remote office