Code/Database (DB)

[SQL] MySql 프로시저(PROCEDURE )

codens 2019. 2. 7. 02:31



* 커서(
https://dev.mysql.com/doc/refman/8.0/en/cursors.html


//==========
* 디버깅
Download MySQL for Visual Studio
https://dev.mysql.com/downloads/windows/visualstudio/
mysql-for-visualstudio-1.2.8.msi 다운로드 , 설치


VS(Visual Studio) 실행
    -> View -> Server Explorer
    -> Data Connections -> 우클릭 -> Add Connections
    -> MySQL Database 선택 -> Countinue 버튼
        server name : localhost , user name:root , Password:Secret , Database Name:선택


프로시저 디버깅
    연결된 서버 -> Stored Procedures -> 프로시저 이름에서 우클릭 -> Debug MySQL Routine


//=======
* 다른 디버깅툴
    - 그다지 쓸만하지 않음
dbForge
debugging for MySQL

debug_msg
https://stackoverflow.com/questions/273437/how-do-you-debug-mysql-stored-procedures


반응형