2009. 9. 30.

다른 테이블의 값을 쿼리해서 업데이트

update test_1 a
set a.title = (select b.title from test_2 b where a.dept_id = b.dept_id)

0 개의 댓글:

Archive

prof

With you not around it’s a little bit more than I can stand. Don’t tell me I ran out of time If it takes the rest of my life.