mysql 存储过程赋值问题
SET@sqlstr=CONCAT('SELECTcount(bugname)FROMxqltempWHEREusername=''',userstr,'''andtyp...
SET @sqlstr = CONCAT('SELECT count(bugname) FROM xqltemp WHERE username =''',userstr,''' and type = 1');
prepare dstmt from @sqlstr;
execute dstmt;
怎么能将count(bugname)的值赋给一个变量里 展开
prepare dstmt from @sqlstr;
execute dstmt;
怎么能将count(bugname)的值赋给一个变量里 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询