Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Home
MySQL Tutorial
Introduction
Select Query
Database
Table
Table Join
Subquery
Insert Update Delete
Logic Operator
View
Data Types
Procedure Function
Cursor
Trigger
Date Time Functions
Comparison Functions Operators
Aggregate Functions
Cast Functions Operators
Control Flow Functions
Encryption Compression Functions
Information Functions
Math Numeric Functions
Miscellaneous Functions
String Functions
Regular Expressions
Data Dictionary
MySQL Utilities
Privilege
CASE « Control Flow Functions « MySQL Tutorial
MySQL Tutorial
Control Flow Functions
CASE
18.2.CASE
18.2.1.
CASE with value
18.2.2.
CASE with condition
18.2.3.
CASE with case-sensitve comparison
18.2.4.
Using CASE to switch the employee id
18.2.5.
A SUM() function can be added to CASE statement to give us the total