我已经这么做了很长一段时间了:
SELECT COUNT(*) FROM Table WHERE Condition = *Condition*;
最佳答案
SELECT CASE
WHEN EXISTS(SELECT *
FROM YourTable
WHERE Condition = '*Condition*') THEN 1
ELSE 0
END