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
- 시행착오
- ktor client
- build with ai
- ktor api call
- video caching
- android
- 안드로이드
- ChatGPT
- exoplayer cache
- kotlin collection
- ExoPlayer
- 유튜브
- kotlin list
- 유튜브 요약
- AWS EC2
- llm
- doc2vec
- DiffUtil.ItemCallback
- ListAdapter
- Zsh
- ListAdapter DiffUtil
- android custom view
- Python
- map
- android exoplayer
- 스피너
- list map
- android ktor
- getChangePayload
- FastAPI
Archives
- Today
- Total
목록pymssql insert (1)
버튼 수집상

웹 크롤러에서 추출한 이미지 패스값을 저장하는데 이미지 패스가 중복될 경우, 수정한 사용자 ID만 업데이트하고 중복되지 않을 경우엔 이미지 패스와 저장한 사용자 ID를 저장하는 쿼리를 짰다. db = pymysql.connect(host='0.0.0.0', port=8000, user='userName', password='****', db='crawler', charset='utf8') cur = db.cursor() #... for path in paths: insert_dict = {'crawler_idx': 0, 'insertUser': userId, 'updateUser': userId, 'imgPath': path} # 이미지 저장하거나 덮어쓸 인덱스 # @position 변수할당 var_sq..
TIL - Python
2023. 5. 23. 10:28