일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- dataframe
- google apps script
- c#
- SQL
- list
- Github
- Apache
- Google Excel
- matplotlib
- Kotlin
- Google Spreadsheet
- array
- Mac
- Python
- PANDAS
- Tkinter
- numpy
- Java
- Excel
- hive
- PySpark
- PostgreSQL
- string
- Redshift
- 파이썬
- GIT
- gas
- math
- django
- Today
- Total
목록Delete (3)
달나라 노트
delete from syntax delete from table_name where condition; table_name이라는 table에서 명시한 condition이 True인 행(row)들을 삭제합니다. delete from test_table where dy > 20201110; 위처럼 적게되면 test_table에 있는 dy컬럼의 데이터가 20201120보다 큰 값을 가진 행(row)을 모두 삭제하게됩니다. delete from test_table; 만약 조건을 명시하지 않는다면 해당 테이블의 모든 데이터가 지워집니다.(단, 테이블은 그대로 남아있습니다.) insert into syntax insert into table_name values (value1, value2, ...) ; inse..
import ftplib s3_host = '11.111.111.111' s3_user_id = 'user_1' s3_user_password = 'pw_1' ftp = ftplib.FTP() ftp.encoding = 'utf-8' ftp.connect(s3_host) # connect to s3 ftp.login(s3_user_id, s3_user_password) # login to s3 csv_to_upload = 'test.csv' file = open(csv_to_upload, 'rb') ftp.storbinary('STOR '+ csv_to_upload, file) print('File list :', ftp.nlst()) file.close() ftp.quit() # quit s3 - Ou..
delete from syntax delete from table_name where condition; table_name이라는 table에서 명시한 condition이 True인 행(row)들을 삭제합니다. delete from test_table where dy > 20201110; 위처럼 적게되면 test_table에 있는 dy컬럼의 데이터가 20201120보다 큰 값을 가진 행(row)을 모두 삭제하게됩니다. delete from test_table; 만약 조건을 명시하지 않는다면 해당 테이블의 모든 데이터가 지워집니다.(단, 테이블은 그대로 남아있습니다.) insert into syntax insert into table_name values (value1, value2, ...) ; inse..