일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- AWS
- notification system
- AWS Infra
- image resizing
- Lambda@Edge
- golang
- Bastion Server
- 컴포짓패턴
- 디자인패턴
- go
- goroutine
- Golines
- System Design
- 알림 시스템
- 시스템 설계
- Kubernetes
- gitops
- Live Template
- Helm V3
- Buffered channel
- 클래스 관계
- GoF 디자인패턴
- tenneling
- GoF
- Infra
- Logrus
- 컴포지트패턴
- argocd
- 대규모 시스템 설계
- UnBuffered channel
Archives
- Today
- Total
Fall in IT.
A Table에서 B Table로 데이터 옮기는 방법 본문
A Table과 B Table의 속성이 완전히 같을 경우
INSERT INTO <TableA>
SELECT <TableB>.*
FROM <TableB>
A Table과 B Table의 속성이 일부 같을 경우
INSERT INTO <TableA>("복사할 필드1", "필드2", "필드3")
SELECT <TableB>.필드1, <TableB>.필드2, <TableB>.필드3
FROM <TableB>
※ <TableA>와 <TableB> 자리에는 테이블명을 적어주시면 됩니다.
모두 즐거운 코딩하세요~
'데이터베이스 > MySQL' 카테고리의 다른 글
MySQL JSON 데이터 필드 조회하는 방법 (0) | 2020.07.07 |
---|
Comments