Execute MySQL Stored Procedure using Command Line

后端 未结 4 1059
名媛妹妹
名媛妹妹 2021-02-07 10:56

Please help me out to execute a MySQL Stored procedure in command line, where the procedure contains conditional statements..

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-07 11:04

    Or:

    mysql --user=your_username --execute="call stored_procedure_name()" db_name
    

    The same as:

    mysql ...  -e "call stored_procedure_name()" ...
    

提交回复
热议问题