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
- ์ฝ๋ฉ
- ์๋ฐ์คํฌ๋ฆฝํธ
- ๊นํ๋จ
- ํ๋ก๊ทธ๋๋ฐ
- ๋ผํ๋ผ์ค์๋ง๋
- ๊น๋ฏธ๊ฒฝ
- K๋ฐฐํฐ๋ฆฌ๋ ๋ณผ๋ฃจ์
- ๋ ์
- ์นํผ๋ธ๋ฆฌ์ฑ
- ํ์ด์ฌ
- K๋ฐฐํฐ๋ฆฌ
- ์ํ
- css
- ์ฅํธ์์ค
- ComputerScience
- ์๋ฐ
- ์ฑ
- ๊น๋ฏธ๊ฒฝ์๋งํ์์
- ๊ฐ๋ฐ
- ๋ฐ์ํ
- JavaScript
- ์ค๋ผํด
- Python
- html
- database
- ๋ง์ผ๋ด๊ฐ์ธ์์๋ค์์ฐ๋ค๋ฉด
- Java
- ์นํ์ด์ง๋ง๋ค๊ธฐ
- ์ปดํจํฐ๊ณผํ
- ๋ฐ์ดํฐ๋ฒ ์ด์ค
Archives
- Today
- Total
JiYoung Dev ๐ฅ
[database ๊ณ ๊ธ] CTAS (2023.08.08) ๋ณธ๋ฌธ
๋ฐฑ์ ํ ์ด๋ธ ์์ฑ
CTAS : CREATE TABLE AS SELECT(CTAS) SELECT ๋ฌธ์ ๊ฒฐ๊ณผ๋ก๋ถํฐ ์ ํ ์ด๋ธ์ ์์ฑํ๋ค.
CREATE TABLE TB_CUST_BAK AS SELECT * FROM TB_CUST;
--๋ฐ์ดํฐ์ ์๋ฃํ๊น์ง ํ๋ฒ์ ๋ค์ด๊ฐ(PK, FK ๋ณต์ฌ๋ ๋ถ๊ฐ)
CREATE TABLE TB_CUST_BAK AS SELECT * FROM TB_CUST WHERE 1=0;
-- TB_CUST์ ๋๊ฐ์ ํํ์ ํ
์ด๋ธ ์์ฑ (๋ฐ์ดํฐ X)
'full stack > database' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[database ๊ณ ๊ธ] ์๋์ฐ ํจ์ (2023.08.09) (0) | 2023.08.09 |
---|---|
[database ๊ณ ๊ธ] ์งํฉ์ฐ์ฐ์ (2023.08.08) (0) | 2023.08.08 |
[database ๊ณ ๊ธ] merge (2023.08.08) (0) | 2023.08.08 |
[database ๊ณ ๊ธ] case๋ฌธ (2023.08.08) (0) | 2023.08.08 |
[database ๊ณ ๊ธ] EXISTS (2023.08.07) (0) | 2023.08.07 |