开发者

How can we use "Decode" functionality in SQLite?

开发者 https://www.devze.com 2023-03-16 16:24 出处:网络
I woul开发者_运维知识库d like to use \"Decode\" functionality in SQLite select statement. From what I have read, it looks like there is no such function in SQLite.

I woul开发者_运维知识库d like to use "Decode" functionality in SQLite select statement.

From what I have read, it looks like there is no such function in SQLite.

What could be a workaround so that we use something similar to "Decode" in SQLite?


There is no decode in Sqlite. Use "case statement instead" it's standard SQL an runs on any DB - which is better anyway.

0

精彩评论

暂无评论...
验证码 换一张
取 消