---
title: "CASE expression of SQLite"
author: "Nonkr"
date: "2013-03-22T10:55:52Z"
tags: []
categories: ["数据库"]
slug: "case-expression-of-sqlite"
draft: false
lastmod: "2013-03-22T10:55:52Z"
id: 1833918
url: "https://nonkr.iteye.com/blog/1833918"
---

![](http://p13.freep.cn/p.aspx?u=v20_p13_photo_1303221054155329_0.jpg)

 

- CASE x WHEN w1 THEN r1 WHEN w2 THEN r2 ELSE r3 END
- CASE WHEN x=w1 THEN r1 WHEN x=w2 THEN r2 ELSE r3 END