研究MariaDB, 需要mock up一些假数据: 生成n个长度整型数的函数rand_num: CREATE DEFINER=`root`@`localhost` FUNCTION `rand_num`(n INT) RETURNS ) begin DECLARE i INT DEFAULT ; DECLARE result INT DEFAULT ; WHILE i < n DO SET result = result* + FLOOR(RAND()*); SET i = i +; END…