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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -