mysql導入存儲過程

查詢數據庫存儲過程mysql

select `name` from mysql.proc where db = 'databaseName' and `type` = 'PROCEDURE'; sql

 mariadb操做存存儲過程,drop全部節點,create當前節點。數據庫

 

SQL語句:spa

DROP PROCEDURE IF EXISTS `generate_serial_number_by_date`;
DELIMITER ;;
CREATE DEFINER=`` PROCEDURE `generate_serial_number_by_date`(
    IN param_key varchar(100),
    IN param_org_id varchar(100), 
    IN param_period_date_format varchar(20), 
      OUT result bigint,
    OUT current_datestr varchar(20))
begin 

end
;;
DELIMITER ;

在存儲過程前寫DELIMITER;;orm

在end後寫兩個分號;;blog

DELIMITER;io

 

use databaseName;mariadb

source /opt/importSql.sqlform

相關文章
相關標籤/搜索