/ Published in: SQL
Test for existence of at least 1 matching row, without having to count them all
Expand |
Embed | Plain Text
SELECT count(*) FROM TABLE WHERE COLUMN = :value AND rownum <= 1; -- If exists then 1 else 0
You need to login to post a comment.
