最新活动:电脑PC端+手机端+微网站+自适应网页多模板选择-建站388元起价!!!
要源码
当前位置:主页 > 网站建设 > MySQL 随机密码生成代码建站知识

MySQL 随机密码生成代码建站知识

时间:2023-05-24 11:05:24 阅读: 文章分类: 网站建设 作者: 网络小编

导读:1建站知识晚上有朋友问起,简单的写了一个。 DELIMITER $$ CREATE FUNCTION `t_girl` . `func_rand_string` ( f_网站建设公司网站优化seo培训。

网站建设公司网站优化seo培训晚上有朋友问起,简单的写了一个。   DELIMITER $$ CREATE FUNCTION `t_girl` . `func_rand_string` ( f_num tinyint unsigned , f_type tinyint unsigned 网站seo优化课程) RETURNS varchar ( 32) BEGIN -- Translate the number to letter. -建设网站- No 1 stands for string only. -- No 2 stands for number only. -- No 3 stands for combination of the above. declare i int unsigned default 0; declare v_result varchar ( 255) default '' ; while i < f_num do if f_type = 1 then set v_result = concat ( v_result, char ( 97+ ceil( rand ( ) * 25) ) ) ; elseif f_type= 2 then set v_result = concat ( v_result, char ( 48+ ceil( rand ( ) * 9) ) ) ; elseif f_type= 3 then set v_result = concat ( v_result,网站seo优化诊断工具 substring ( replace ( uuid ( ) , '-' , '' ) , i+ 1, 1) ) ; end if; set i = i + 1; end while; return v_result; END $ $ DELIMITER ;     调用方法示例:   select func_rand_string(12,3);   相关网站建设公司网站优化seo培训。

关键词标签: 标签 SQL 密码

声明: 本文由我的SEOUC技术文章主页发布于:2023-05-24 ,文章MySQL 随机密码生成代码建站知识主要讲述密码,标签,SQL网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_6732.html

我的IDC 网站建设技术SEOUC.COM
专注网站建设,SEO优化,小程序设计制作搭建开发定制网站等,数千家网站定制开发案例,网站推广技术服务。
  • 5000+合作客服
  • 8年从业经验
  • 150+覆盖行业
  • 最新热门源码技术文章