在查询排序语句之后,加上for update即可 例如:select * from tbcastpono order by cast_no,pono for update 然后再点开表格上方的小锁标志,即可。