sql - How to use Select Exists in Oracle? -
what equivalent of below sql query in oracle?
select cast( case when exists(select * thetable thecolumn 'thevalue%') 1 else 0 end bit) i want oracle query exists used , returns 0 or 1 above.
the equivalent be:
select count(*) dual exists (select * thetable thecolumn 'thevalue%')
Comments
Post a Comment