TiDB Cloud
TiDB Self-Managed
Learning Center
Contact Us
Ask AI
Sign In
Start for Free
🚀
Explore the new TiDB Labs, learn distributed SQL database and build RAG apps directly from your browser.
Control Flow Functions
TiDB supports all of the
control flow functions
available in MySQL 5.7.
Name
Description
CASE
Case operator
IF()
If/else construct
IFNULL()
Null if/else construct
NULLIF()
Return NULL if expr1 = expr2
Was this page helpful?
Yes
No
Download PDF
Request docs changes
Ask the community
What's on this page
What's on this page