mysql>
mysql> select GET_FORMAT(DATETIME,'INTERNAL');
+---------------------------------+
| GET_FORMAT(DATETIME,'INTERNAL') |
+---------------------------------+
| %Y%m%d%H%i%s |
+---------------------------------+
1 row in set (0.00 sec)
mysql>