UPDATE menu set parent_id = (select * from (select id from menu a where code='STATISTICS' and role = 'ADMIN') as a) where (code = 'STATISTICS_SETTING' and role = 'ADMIN');
이런식으로 감싸줘야 update문에서 사용할수 있다.이유는 잘 모르겠네요..아시는분은 댓글달아주세요~