// UPDATE JOIN 샘플
update tbl_board as a inner join (select bno, count(rno) as replyCnt from tbl_reply group by bno) as b
on a.bno = b.bno
set a.replycnt = b.replyCnt;
'MySQL' 카테고리의 다른 글
[MySQL] 원격에서 Root(or user)로 접속허용 및 모든권한 설정 (0) | 2017.01.23 |
---|---|
MySql Column Type 과 Java Type (0) | 2016.03.17 |
The last packet successfully received from the server was.... (0) | 2016.03.16 |
DataBase, Table 정보 쿼리 (0) | 2016.03.15 |