gpt4 book ai didi

MySQL 服务器不通过 phpmyAdmin 创建存储过程

转载 作者:行者123 更新时间:2023-11-29 07:07:53 25 4
gpt4 key购买 nike

delimiter //
create procedure rankPagesLive()
BEGIN
SET @r=0;
UPDATE pageslive SET Rank= @r:= (@r+1) ORDER BY fan_count DESC;
END //
delimeter ;

Error'#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delimiter // create procedure rankPagesLive() BEGIN SET @r=0' at line 1


怎么了?

最佳答案

最后一行应该是:

delimiter ;

关于MySQL 服务器不通过 phpmyAdmin 创建存储过程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6238318/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com