mysql - 该程序在 MySQL 5 中有效,但在 MySQL6 中失败,为什么?

标签 mysql procedure mysql6

过程:

delimiter |
create procedure  pro_regs(in username varchar(50), 
                           in pwd varchar(50), 
                           in email varchar(50), 
                           in address varchar(50)) 
  begin  

     insert into regists 
       ( `user_name` , `user_psd` , `user_email` , `user_address`)
     values
       (username, pwd, email, address);

  end|

有人知道吗?

最佳答案

根据您的描述无法回答,但您可能会发现这有帮助。

Stored routines require the proc table in the mysql database. This table is created during the MySQL 6.0 installation procedure. If you are upgrading to MySQL 6.0 from an earlier version, be sure to update your grant tables to make sure that the proc table exists.

我必须问您是否知道不再开发 MySQL 6 的事实?

The MySQL 6.0 Reference Manual has been retired.

MySQL 6.0 was not developed beyond Alpha status and new releases have not been made for some time, so the manual has been withdrawn as well.

New development is currently focused on MySQL 5.4. For more information, see MySQL 5.4 Reference Manual.

引用文献 Manual | Notice

关于mysql - 该程序在 MySQL 5 中有效,但在 MySQL6 中失败,为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1807197/

相关文章:

mysql - 不能做 SUM 的 SUM 吗?

php - 对 PROCEDURE 结果运行查询的最有效方法

sql - 在 Oracle 10g 中将行旋转到列

mysql - 如何返回 MYSQL PROCEDURE 错误

mysql - 实现 MySQL NDB Cluster 的限制是什么?

php - MySQL where 子句获取下周事件

php - 将 wp_postmeta 表加入自身以查找与特定元键和值相关的所有条目

mysql - 关于 mysql 的 sql 性能调优,你更喜欢哪本书?