MySQL DATETIME from Bash date

Posted by admin on Okt 29, 2009 in Work Related |

Just execute this:
$> date +"%Y-%m-%d %H:%M:%S"
this will produce the same output as:
SELECT now( )

Output: 2009-10-29 09:53:19

Schlagwörter: , ,

Reply

OC

Copyright © 2018 Stempell All rights reserved. Theme by Laptop Geek.