UPDATE table1 AS a
SET col1=(SELECT col1 FROM table2 AS b WHERE a.col2 = b.col2)


'DB > MySQL' 카테고리의 다른 글

datetime 컬럼을 분단위로 group by 하기  (1) 2020.09.29
5.7 DB 파일로 복원  (0) 2020.06.04
외부 접근 허용  (0) 2019.10.28
Create table select, Insert select  (0) 2011.06.17
스키마내 테이블 수  (0) 2011.06.17

+ Recent posts