update tb set SUIJI='no' where id in (select top 30 percent id from tb order by newid())
中 percent 的用法显然是有问题的。
既然你要让30%的记录更新成"no",你首先要做的是获得一共有多少记录数然后出30%有多少记录.
select count(*) from tb
//你先获得一共有多少记录。保存到一个变量,然后求出30%是多少(记得取整数)
update tb set SUIJI='no' where id in (select top 带入你的变量 id from tb order by newid())