Overview:The case statement in the SQL statement and the switch statement in the high-level language are standard SQL syntax, and are suitable for a condition that has multiple values to perform different operations, respectively.First, let's look
Overview:The case statement in the SQL statement and switch statement in the advanced language are standard SQL syntaxes and are applicable to multiple condition judgments.
In case of different values, perform different operations.
First, let's take
Case has two formats. Simple case function and case search function.--Simple Case function Case Sex When ' 1 ' Then ' men ' When ' 2 ' then ' women ' Else ' other ' END --case search function case If sex = ' 1 ' Then ' man ' When sex = ' 2 '
Address: http://www.ibm.com/developerworks/cn/rational/r-usecase-atm/index.html
Level: elementary
Fu chunyi, technical sales manager of Rational China, software department of IBM China Co., Ltd.
November 01, 2004
Use Case is a method used to
Case modeling GuideFu chunyi, technical sales manager of rational China, software department of IBM China Co., Ltd.November 01, 2004Original URL: http://www-128.ibm.com/developerworks/cn/rational/r-usecase-atm/@
Use case is a method used to describe system requirements. The process of describing system requirements using use cases is case modeling. The use case method was first proposed by Dr. IVA jackboson and was later integrated into the UML
Case has two formats. Simple case function and case search function.--Simple Case function Case Sex When ' 1 ' Then ' men ' When ' 2 ' then ' women ' Else ' other ' END --case search function case If sex = ' 1 ' Then ' man ' When sex = ' 2 '
You cannot use the switch statement in ASP, you need to use the Select Case statement
A Brief introduction
Select the work of the report, if the statement. The difference, however, is that they can check for multiple values. Of course, you
First, Select case syntax and parameter introduction
Select Case testexpression
[Case Expressionlist-n
[Statements-n]] ...
[Case Else
[Elsestatements]]
End Select
The syntax for the Select case statement has the following sections:
Shell programming control structure: expr, let, for, while, until, shift, if, case, break, continue, function, select
1. expr calculates the integer variable value
S = 'expr 2 + 3'
The operator numbers and parameters must be separated by spaces;
2.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.