現在の時刻を色々調べてみた。

現在の時刻を取得するとき、どんな関数使うのがベストかなー。って思ってテストしてみた。

select unix_timestamp(current_timestamp);
結果:1223531207

select unix_timestamp();
結果:1223531207

select current_timestamp;
select now();
結果:2008-10-09 14:48:31

select current_date();
select curdate();
結果:2008-10-09

select current_time;
select curtime()
結果:14:48:40

色々あるねー。
シノニムはまとめて書いてます。