---
title: "SQL语句中使用rand（）和round()函数"
author: "cs_man"
date: "2011-05-22T00:06:56Z"
tags: []
categories: ["数据库"]
slug: "sql-rand-round"
draft: false
lastmod: "2011-05-22T00:06:56Z"
id: 1054027
url: "https://cs-man.iteye.com/blog/1054027"
---

update user set user_id =  Round(RAND() * 100, 0)