Experiments eight Stored Procedures
First, the Experiment:
1, create a stored procedure
2, stored procedure calls
Second, the pilot project: student achievement database
Create a database for student performance management, database called XSCJ in, XSCJ database consists of three tables: xs (students basic information table), kc (course information table), xs_cj (transcript).
Third, the experimental procedure requires that each stored procedure creates :( must be called after a successful test)
1, create a stored procedure in xscj database, realize the function is to delete a specific student information.
2. Create a stored procedure that determines which of two more input parameters, and returns the larger value;
3, create a stored procedure, if the input parameter is m, the "M" to return; if the input parameter is f, the "female" to return;
4, create a stored procedure with a while loop, calculating 1 + 2 + 3 + ...... + 100;
5. Create a stored procedure with a loop cycle, calculating 1 + 2 + 3 + ...... + 100;
6, create a stored procedure, using the cursor row count XS table.
7, create a stored procedure, there are two input parameters xh and kch, requires that when a student scores less than 60 time-sharing certain course credits to be modified to 0, greater than or equal to 60 credits modify the time-sharing for course credit.
8, to create a stored procedure do_insert1, insert a row into the role xs table. Create a stored procedure and then additionally do_insert2, in which a call to the first stored procedure, and data processing in accordance with the line condition.
Fourth, test reporting requirements
1 test report format requirements
Content includes: title, experimental content, experimental procedure, experimental problems encountered and solutions
2, Content Experiments reporting requirements
(1) See experimental guidance heading + title "lab report" as in "experimental installation with a MySQL command preliminary lab report";
Same as in (2) Experiment of content and guidance;
In the (3) experimental procedure commands and the operation result of each step in their experiments show screenshots perfect interface.
(4) 实验中遇到的问题及解决方案中如实地将自己的问题的解决过程记录出来。
3、 实验报告提交要求
每次实验课结束之后,每个人需要提交实验报告,实验报告命名为:学号姓名
五、 补充说明