0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MySQL SQL句で現在時刻を出力する

Posted at

目的

  • MySQLにてSQL句で現在時刻を出力する方法をまとめる。

方法

  • 下記のSQL句を実行する。

    $ select now();
    
  • 下記のように出力される。

    mysql> select now();
    +---------------------+
    | now()               |
    +---------------------+
    | 2021-12-17 07:35:15 |
    +---------------------+
    1 row in set (0.00 sec)
    
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?