일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- dataframe
- conda
- boost
- 배열
- pi
- List
- Shader
- FIND
- ubuntu
- c++11
- python
- awk
- null
- sqlite
- mysql
- postgresql
- SSH
- C++
- pandas
- SVN
- Unity
- autovacuum
- ngui
- expect
- with
- 쉘
- sql
- DROP
- Eclipse
- if
- Today
- Total
목록프로그래밍/SQL (58)
その先にあるもの…
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071#RGAN01를 주문한 주문 번호를 가져온다.Select order_numFrom orderitemsWhere prod_id = "RGAN01";__________________________________________________________________order_num2000720008 #주문 번호로 고개 ID를 가져온다.Select cust_idFrom ordersWhere order_num in (20007,20008);____________________..
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253#컬럼 값을 그룹핑하여 같은 값의 카운팅Select vend_id, count(*) as num_prodsFrom productsGroup by vend_id;----------------------------------------------------------------------------vend_id,num_prodsBRS01, 3DLL01, 4FNG01, 2 #group by절에는 원하는 만큼의 컬럼을 써서, 중첩 그룹을 만들 수 있다.#select 안에서 수식을 사용한다면, group by에도 같은 수식을 사용해야 한다.#..
Error Code: 2013. Lost connection to MySQL server during queryEdit → Preferences → SQL Editor → DBMS connection read time out (in seconds): 30을 늘려보기 Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statementSHOW VARIABLES LIKE "secure_file_priv:;로 나온 경로에 파일을 위치해서 읽어보기
MySql에서 CSV파일을 직접 INSERT하기 #secrue-file-priv 옵션의 파일 경로load data infile 'C:/ProgramData/MySQL/MySQL Server 5.7/Uploads/fileName.csv'into table 테이블 네임fields terminated by ','enclosed by '"'lines terminated by '\n'ignore 1 rows 참고 : https://dev.mysql.com/doc/refman/5.7/en/load-data.html