4.2.7 Create a stored procedure to obtain the detailed route information of the specified route name. It is required to display the route name, travel days, price, transportation and accommodation standards.

View this chapter

View job directory


Statement of needs:

Create a stored procedure to obtain the detailed route information of the specified route name, requiring the display of the route name, travel days, price, transportation and accommodation standards.

Create a stored procedure to obtain the ratio of the number of lines of the specified line type to the number of all lines

Realization ideas:

 Demand description (1) solution ideas

  • Create a stored procedure proc_LineDetail contains only one input parameter, used to receive the line name
  • Execute stored procedure

Demand description (2) solution ideas

  • The stored procedure proc_ proc_LineNumsRate contains two parameters: one is an input parameter, which is used to receive the name of the line type; the other is an output parameter, which is used to output the ratio of the number of lines of the specified type to the number of all lines
  • Execute stored procedure

Implementation code:

Guess you like

Origin blog.csdn.net/weixin_44893902/article/details/111117182