我无法找到在phpMyAdmin中编写存储过程的位置以及如何使用MVC架构调用它。
You can easily create procedures in phpMyAdmin.
For example like follows.
That's it. You can view your created procedures under 'Routines' tab itself.
In phpMyAdmin you can create the stored procedure in the SQL window.
You may have to set the delimieter to something like "$$" instead of the default ";". You can change this from the bottom of the SQL window.
Also you can refer this: http://www.mysqltutorial.org/mysql-stored-procedure-tutorial.aspx
you can create a stored procedure in the sql query window on the phpmyadmin as you write any other query. And as soon as you execute the SP, it will be stored in the database's information_schema. You can check the existence of SP by the following commands:
SHOW PROCEDURE STATUS
SHOW FUNCTION STATUS
and
SELECT ROUTINE_NAME
FROM INFORMATION_SCHEMA.ROUTINES
WHERE
ROUTINE_TYPE="PROCEDURE"
AND ROUTINE_SCHEMA="dbname"
;
STORED PROCEDURES are written using normal SQL language in the SQL box available in phpmyadmin->database->table->execute sql
Refer this: - http://dev.mysql.com/doc/refman/5.0/en/stored-routines.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.