Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Search database for a numeric value

User_GVHF4Jun 14 2023

I use the following query to search a string value in the database:

SELECT * FROM ALL_source WHERE UPPER(text) LIKE '%ABC123XYZ%'; 

How do I search for a numeric value like 123456789 ?

I've tried this but didn't work:

SELECT * FROM ALL_source WHERE text = 123456789 ;

Comments
Post Details
Added on Jun 14 2023
26 comments
1,798 views