数据库-SQL语法:把一个字段的值设为随机整数

 update test2 set zuig = (cast ( ceiling (rand()*9) as int))  
posted @ 2013-12-19 16:00  CPYER  阅读(347)  评论(0)    收藏  举报