-
Notifications
You must be signed in to change notification settings - Fork 0
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
mysql #1
Comments
LOAD DATA LOCAL INFILE '/Users/dayoung/downloads/food_detail_for_server.txt' INTO TABLE posts FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' (posts_title, posts_img, posts_time, posts_places, posts_info, posts_expire, posts_lat, posts_lon, posts_isSell, user_id, available); select * from posts; drop table posts; CREATE TABLE CREATE TABLE LOAD DATA LOCAL INFILE '/Users/dayoung/downloads/users_profile_for_server.txt' INTO TABLE users FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' (user_name, user_profile); ALTER TABLE posts AUTO_INCREMENT = 1; |
LOAD DATA LOCAL INFILE '/Users/dayoung/downloads/food_detail_for_server.txt' INTO TABLE posts CHARACTER SET utf8 character set UTF8 FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' (posts_title, posts_img, posts_time, posts_places, posts_info, posts_expire, posts_lat, posts_lon, posts_isSell, user_id, available); select * from posts; drop table posts; CREATE TABLE CREATE TABLE LOAD DATA LOCAL INFILE '/Users/dayoung/downloads/users_profile_for_server.txt' INTO TABLE users CHARACTER SET utf8 FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' (user_name, user_profile); ALTER TABLE posts AUTO_INCREMENT = 1; show variables like 'character%'; set character_set_database=euckr; insert into users(user_name, user_profile) values('은주섭', 'https://s3.ap-northeast-2.amazonaws.com/cjimage2/posts/users/me.png'), |
mysql bulk query
The text was updated successfully, but these errors were encountered: