Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 |
Tags
- matplotlib
- sklearn
- numpy
- count()
- elbow method
- DataFrame
- pandas
- 반복문
- 분류 결과표
- 최솟값
- len()
- Python
- hierarchical_clustering
- IN
- DataAccess
- Machine Learning
- append()
- dendrogram
- analizer
- string
- 최댓값
- insert()
- list
- del
- wcss
- nan
- 덴드로그램
- data
- function
- Dictionary
Archives
- Today
- Total
개발공부
[MySQL] 현재 시간과 관련된 함수 curdate(), curtime(), now() 본문
curdate()
현재 날짜를 가져온다.
YYYY-MM-DD 형태
select curdate();

curtime()
현재 시간을 가져온다
HH:MM:SS 형태
select curtime();

now()
현재 날짜, 시간을 가져온다.
YYYY-MM-DD HH:MM:SS 형태
select now();

curdate(), curtime(), now() 이용해 데이터 추가하기
people 테이블

insert into people
(name, birthdate, birthtime, birthdt)
values
('Harry', curdate(), curtime(), now());
select * from people;

'Database > MySQL' 카테고리의 다른 글
| [MySQL] 날짜 형식을 바꾸는 date_format() (0) | 2022.05.16 |
|---|---|
| [MySQL] 시간 데이터 년, 월, 일, 시, 분, 초, 요일 가져오기 (0) | 2022.05.16 |
| [MySQL] 시간 관련 데이터 타입 date, time, datetime, timestamp (0) | 2022.05.16 |
| [MySQL] 데이터 별로 묶기 group by, 데이터의 개수 count(), 합계 sum() 최댓값 max(), 최솟값 min(), 평균 값 avg() (0) | 2022.05.16 |
| [MySQL] 원하는 행 가져오기 limit, 문자열 검색 like (0) | 2022.05.16 |