当前位置:Gxlcms > mysql > mysql创建存储过程时,select语句like中引用变量如何引用?
mysql创建存储过程时,select语句like中引用变量如何引用?
时间:2021-07-01 10:21:17帮助过:19人阅读
mysqllike存储过程select语句
附代码: delimiter//
DROP PROCEDURE IF EXISTS M_DNAME // CREATE PROCEDURE M_DNAME (MONTH VARCHAR(2)) SELECT INCOME.CID,COUNT(*) COUNTS FROM INCOME WHERE TIME LIKE '______MONTH%'; //