![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql
文章平均质量分 56
Nihao_11
一个平平无奇的码农
展开
-
关于mysql创建游标
CREATE DEFINER=root@% PROCEDURE pr_club_reports(IN uuid bigint)COMMENT ‘俱乐部报表’BEGIN#发展玩家下级个数()declare playerNo int DEFAULT 0; #声明变量#发展玩家下级个数()declare dlUsercode VARCHAR(255) DEFAULT 0;#下级玩家usercodedeclare allPLayer VARCHAR(255) DEFAULT 0;#下级玩家原创 2022-02-23 10:27:22 · 781 阅读 · 0 评论 -
有关于Sql中in的用法
例如:select ID, DuctID,TmpCode ,TaskNO, CrtDate,WorkName,DATEDIFF(MI,CrtDate, getdate()) as minuts from V_tabCrtCodeSub where Iflag=1 and IState=1 and DATEDIFF(MI,CrtDate, getdate())>(select TimL...原创 2019-04-04 19:30:02 · 1398 阅读 · 0 评论