DB

[DB][MySQL] CURRENT_TIMESTAMP()

오선지♬ 2023. 3. 6. 18:57
728x90
반응형

https://www.w3resource.com/mysql/date-and-time-functions/mysql-current_timestamp-function.php

 

MySQL CURRENT_TIMESTAMP - w3resource

In MySQL the CURRENT_TIMESTAMP returns the current date and time in ‘YYYY-MM-DD HH:MM:SS’ format or YYYYMMDDHHMMSS.uuuuuu format depending on whether numeric or string is used in the function.

www.w3resource.com

 

MySQL에서 CURRENT_TIMESTAMP는 함수에서 숫자 또는 문자열이 사용되었는지 여부에 따라 'YYYY-MM-DD HH:MM:SS' 형식 또는 YYYYMMDDHHMMSS.uuuuuu 형식으로 현재 날짜와 시간을 반환합니다. NOW()  CURRENT_TIMESTAMP()는 CURRENT_TIMESTAMP와 동의어입니다.

728x90
반응형