Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mariadb 테이블 charset 초기화 #222

Open
taesikyoo opened this issue May 6, 2021 · 3 comments
Open

mariadb 테이블 charset 초기화 #222

taesikyoo opened this issue May 6, 2021 · 3 comments

Comments

@taesikyoo
Copy link
Collaborator

No description provided.

@taesikyoo
Copy link
Collaborator Author

@taesikyoo
Copy link
Collaborator Author

LOAD DATA LOCAL INFILE '/home/ec2-user/snowball/build/resources/main/KOSPI.csv'
REPLACE INTO TABLE snowball_project.stock_detail
CHARACTER SET utf8
COLUMNS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 LINES
(COMPANY_NAME, ITEM_CODE, CATEGORY, MAIN_PRODUCT, LISTING_DATE, SETTLEMENT_MONTH, REPRESENTATIVE)

@taesikyoo
Copy link
Collaborator Author

역시 공식문서가 답이었습니다...ㅠㅠ
https://mariadb.com/kb/en/load-data-infile/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant