MySQL-单行函数-数字函数(mod,rand)

MySQL-单行函数-数字函数(mod,rand)

4、求模:数字 MOD(数字1 | 列1,数字2 | 列2)

select mod(123,10),234%7,3 mod 2;

MySQL-单行函数-数字函数(mod,rand)

select mod(3.14,3),mod(3,0), mod(3,null);

MySQL-单行函数-数字函数(mod,rand)

5、随机数:数字 RAND ()

select rand(),rand();

MySQL-单行函数-数字函数(mod,rand)

select rand(1),rand(2),rand(1);

MySQL-单行函数-数字函数(mod,rand)

 

给TA打赏
共{{data.count}}人
人已打赏
MYSQL

MYSQL-单行函数-数字函数(ABS,CEIL,FLOOR)

2021-11-13 22:20:59

MYSQL

MYSQL-多表查询(1)

2021-11-17 23:44:51

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索

Warning: error_log(/www/wwwroot/www.wenlk.com/wp-content/plugins/spider-analyser/#log/log-0719.txt): failed to open stream: No such file or directory in /www/wwwroot/www.wenlk.com/wp-content/plugins/spider-analyser/spider.class.php on line 2900