RE: How to insert date into date field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I have a date that is formatted in the following way
> day(00-31)/Mon(Jan-Dec)/year(2003):hour(00-23):minute(00-59):sec(00-59)
>
> I want to load this into mysql table (date column)
>
> In oracle I can just use the to_date function but all I find about MYSQL
> seems to want the date in a specific format beforehand.

If you are using PHP to insert it you can just format it before sticking it
in.  It gets a little more complicated if you are loading it in via LOAD
DATA INFILE or something like that.  What exactly are you attempting to do?

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux