yoursyun
테이블 join 하여, update 하기 본문
update table1 as a
join table2 as b
on a.key = b.key
set a.col1 = 'hello?'
where a.col = 'hello';
table1 과 table2 를 key가 같은것과 조인, table1 col 이 'hello' 인건에 대해
col1 의 내용을 hello? 로 변경한다.
반응형
update table1 as a
join table2 as b
on a.key = b.key
set a.col1 = 'hello?'
where a.col = 'hello';
table1 과 table2 를 key가 같은것과 조인, table1 col 이 'hello' 인건에 대해
col1 의 내용을 hello? 로 변경한다.