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 |
Tags
- freebsd
- x-pack
- ssh key 배포
- Kibana
- pfsense
- 한글가이드
- Kibana server is not ready yet
- ELASTIC
- ansible
- macos
- Proxy
- centos 8
- endpoint security
- XCP-ng
- GitLab
- docker
- elastic stack
- G-suite
- application security
- Elasticsearch
- Windows
- PlayBook
- proxycfg
- xe guest utilities
- hardening
- bash
- 보안양파
- miniconda
- 로그인불가
Archives
- Today
- Total
선 밖에 선 자유인
select 결과 다른 테이블에 저장 본문
특정 테이블의 내용을 select 한 결과를 다른 테이블에 추가 시
- tableA 조회 결과 => tableB
insert tableB (column1, column2, column3, column4) select * from tableA where columnA = <value>;
* 중복 제거 하면서 insert
INSERT INTO tableB
SELECT * FROM tableA WHERE <조건> and column2 NOT IN (SELECT column2 FROM tableB)
GROUP BY column1
Comments