PL/MySQL does it exist?

后端 未结 5 374

In Oracle there is PL/SQL, a powerful imperative language. Is there anything similar for MySQL?

5条回答
  •  青春惊慌失措
    2020-12-13 13:35

    Google for "Getting started with mysql stored procedures", the syntax is not that far from PLSQL.

        DELIMITER //     
        CREATE PROCEDURE GetAllProducts()
           BEGIN
           SELECT *  FROM products;
        END //
        DELIMITER ;
    

提交回复
热议问题