update test2 set zuig = (cast ( ceiling (rand()*9) as int)) 转载于:https://www.cnblogs.com/CPYER/p/3482376.html