以下是在
Oracle
中与下面的SQL查询
等价的查询语句:SELECT CAST(
CASE WHEN EXISTS(SELECT * FROM theTable where theColumn like 'theValue%') THEN 1
ELSE 0
END
AS BIT)
我只需要一个使用 exists 关键字的 Oracle 查询,该查询会返回像上面一样的 0 或 1。