https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=parkjy76&logNo=220444941264
You can't specify target table
참고 : http://www.mysqlfaqs.net/mysql-errors/1093-you-can-not-specify-target-table-comments-for-upda...
blog.naver.com
서브 쿼리로 자기 자신 테이블을 바로 참조할 수 없어서 나는 에러.
임시 테이블을 하나 만들어서 SELECT로 또 한번 감싸주어야만 에러가 안 난다.
https://jmkjb.tistory.com/entry/MySQLUpdateError
You can't specify target table 테이블명 for update in FROM clause
"You can't specify target table 테이블명 for update in FROM clause" 위 에러는 MySQL DB 에서 확인을 했고, 버전은 5.6 버전임. 예를 들어, A라는 테이블을 Update 하기 위해서 Where 조건 상에 같은 A 테이블..
jmkjb.tistory.com
MySQL Error 1093 : You can't specify target table 'tablename' for update in FROM clause
www.lesstif.com
'오늘은 공부 중 > DB' 카테고리의 다른 글
[MYSQL] AI를 PK로 삼고 싶지 않을 때 / 대소문자를 구분하고 싶을 때 (0) | 2021.09.06 |
---|---|
[ mysql ] unable to connect localhost mysql이 뜰 때 (0) | 2021.09.05 |
[mysql] stored procedure의 특징 (0) | 2021.09.01 |
[mysql join] 조인 공부하기 (0) | 2021.08.24 |
Index에 대하여 (0) | 2021.08.16 |