일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 기초 수학
- Redis
- Babel
- rabbitmq
- laravel
- phpredis
- Backbone.js
- docker
- Switch
- mariadb
- SQL
- CentOS
- webpack
- React
- python
- javascript
- php
- For
- Node
- linux
- Machine Learning
- nginx
- nodejs
- Go
- Redux
- deep learning
- AWS
- 블레이드 템플릿
- NCP
- fastapi
- Today
- Total
목록mysql (2)
개발일기

CentOS 6까지는 Mysql이였지만 CentOS 7 부터는 MariaDB로 제공한다. 1. Repository 찾기 https://mariadb.org/download/?tab=repo-config Download MariaDB Server - MariaDB.org REST API Release Schedule Reporting Bugs … Continue reading "Download MariaDB Server" mariadb.org 자신의 OS와 일치하는 mariadb의 저장소 정보를 찾는다. # MariaDB 10.6 CentOS repository list - created 2021-11-05 07:01 UTC # https://mariadb.org/download/ [mariadb] nam..

CONVERT와 CAST는 SQL에서 한 칼럼의 데이터 타입을 다른 형식으로 변환시켜 보여주도록 도와주는 타입 변환 함수이다. 0. 준비단계 문자타입의 count라는 칼럼을 가진 테이블 생성 CREATE TABLE example( count VARCHAR2(10) ); 1. CAST 사용법 CAST( 칼럼명 AS 변환하고자 하는 타입) 예제 SELECT * FROM test ORDER BY CAST(count AS NUMBER) DESC; 2. CONVERT 사용법 CONVERT(데이터 타입, 칼럼명) 예제 SELECT * FROM test ORDER BY CONVERT(NUMBER, count) ASC; convert에는 추가로 스타일을 지정하여 날짜값을 변환하여 출력할 때 유용하게 사용할 수 있다. ..