[MariaDB] 날짜 관련 명령어 now() 현재 날짜 및 시간 정보 출력 / sysdate(), current_timestamp() 현재 날짜 및 시간 정보 출력 / curdate(), curtime() 시간 정보 출력 / 현재 날짜에 2일 더하기 date_add( 기준 날짜,..
now(), 현재 날짜 및 시간 정보 출력 select now(); sysdate(), current_timestamp(), 현재 날짜 및 시간 정보 출력 select sysdate(), current_timestamp(); curdate(), curtime(), 시간 정보 출력 select curdate(), curtime(); 현재 날짜에 2일(2 day) 더하기( date_add == adddate ) select now(), date_add( now(), interval 2 day ); 현재 날짜에 2달(2 month) 더하기( date_add == adddate ) select now(), date_add( now(), interval 2 month ); 현재 날짜에 2달 빼기( date_sub..
2022. 10. 20.