Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
| /**** | |
| 1. Do not use stored procedure & function parameters name same as WHERE clause field name | |
| It will be responding with all record of query because MySQL interprets field value as parameter value similar like 1=1. | |
| Example: | |
| ****/ | |
| -- Bad | |
| CREATE PROCEDURE `getPersonById`(IN id INT(10)) | |
| BEGIN | |
| -- return all record instead |
Getting started:
Related tutorials: