saykaren / TypescriptCheatSheet

0 stars 0 forks source link

sql #533

Open saykaren opened 9 months ago

saykaren commented 9 months ago

debug stored procedure

USE schema$$

DROP PROCEDURE IF EXISTS log_msg$$

CREATE PROCEDURE log_msg(msg VARCHAR(255)) BEGIN insert into log_msg select 0, msg; END$$

DELIMITER ;

Pull the stored procedure with your changes out of PHPstorm (without top comments) run in mySQLWorkbench or in PHPStorm DB console

Now in in that same spot run that stored procedure with required parameters

call SpUpdateFees(variable1, variable2);

Check your log_msg table to check values that you logged

SELECT * FROM log_msg;

Pranay1010 commented 9 months ago

Please replace _variable, variable1, and variable2 with your actual variables.

saykaren commented 9 months ago

@Pranay1010 Weird request. You know that stored proc isn't real right? _variable would be whatever variable in the stored procedure you are wanting to get insight to. The variable1 and variable2 or whatever variables that store procedure when real takes