PHP expert |
|
SELECT id, datetime, DATE_FORMAT(datetime, '%d') AS dag, DATE_FORMAT(datetime, '%m') AS maand, DATE_FORMAT(datetime, '%Y) AS jaar, DATE_FORMAT(datetime, '%H') AS uur, DATE_FORMAT(datetime, '%i') AS minuut FROM tabel;
SELECT id, datetime, DATE_FORMAT(datetime, '%d') AS dag, DATE_FORMAT(datetime, '%m') AS maand, DATE_FORMAT(datetime, '%Y) AS jaar, DATE_FORMAT(datetime, '%H') AS uur, DATE_FORMAT(datetime, '%i') AS minuut FROM tabel;
Zoiets? |