有两个进程:
进程一负责对表插入: insert table1(t1,result) values('aaa',0);
进程二负责选择更新: select * from table1 where result=0;
                     update table1 set result=1 where result=0;
问题是如何对进程二进行修改,防止在select之后,在update之前,进程一插入数据?
每次select可能有几十行的的数据。请指教,不胜感激!