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 | 31 |
Tags
- Python
- {"msg":"cannot find method
- dispatchTouchEvent
- effect api
- android compose stable
- android mvi
- android compose
- databinding xml
- LaunchedEffect
- compose side-effect
- @provides @binds 차이
- @immutable
- isFinishing()
- [databinding]
- android.view.WindowManager.BadTokenException
- Could not find method
- LaunchedEffect vs rememberCoroutineScope
- 레트로핏
- Android
- 힐트
- rememberCoroutineScope
- 안드로이드
- 터치이벤트 순서
- databinding error
- Java
- WindowManager$BadTokenException
- @stable
- 안드로이드 다이얼로그 오류
- onIntercepterTouchEvent
- material3
Archives
- Today
- Total
개발관련일지
MYSQL ] primary key 초기화하기 본문
파이썬에서 pk(AUTO_INCREMENT)를 초기화 해줘야 할 일이 생겨서 찾아봄
커리문은 ALTER TABLE [TABLE명] AUTO_INCREMENT = [시작할 값]; 입력하면됨
파이썬 코드상으로는
connect = pymysql.connect("아이피","아디","비번","디비", charset='utf8')
cursor = connect.cursor()
reset_pk = "ALTER TABLE 테이블 AUTO_INCREMENT = 1"
cursor.execute(reset_pk)
connect.commit()
'개발기록 > DB' 카테고리의 다른 글
MySQL ] 서브쿼리 UNION (0) | 2020.04.23 |
---|