摘要:
网摘DELIMITER $$CREATE DEFINER=`root`@`%` PROCEDURE `sp_pament_TrainFee`()BEGIN/*局部变量的定义 declare*/declare strYear int;declare strEnrollID int;declare feesum int;declare stop int default 0;declare cur cursor for(select year ,EnrollID ,sum(Fee) from trainmanage where ReturnStatus !=1 group by Year,Enr.. 阅读全文
摘要:
1.FIND_IN_SET 获取某个字符串在另一个以‘,’隔开的字符串中的位置使用示例:select FIND_IN_SET('198', '198,23') 返回值:12.group_concat 将某列的数据组合成字符串表employeeID Name120 小刘119 小张使用示例:select group_concat(Name) from employee where id in (120,119) 返回值为:小张,小刘 阅读全文
摘要:
网摘ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server解决方法:1。 改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"mysql -u root -pvmwaremysql>use my 阅读全文