基本语句如下
update tb set tb.dept=? where tb.dept is null and id=?update tb set tb.dept=? where tb.
update tb set tb.dept=? where tb.dept is null and id=?update tb set tb.dept=? where tb.