Basssque
asked on
Query all columns in a table for specific characters
Is is possible to query against an entire table in Oracle and throw the results for only the fields/columns that contain the specified criteria? For example
I want to
select *
from table
where any field in any column contains a comma, question mark, hash tag, or exclamation point
I want to
select *
from table
where any field in any column contains a comma, question mark, hash tag, or exclamation point
ASKER
Can the where statement be consolidated?
For example, If I need to check 100 columns for 20 different like statements or want to add a field, its a lot to edit
For example, If I need to check 100 columns for 20 different like statements or want to add a field, its a lot to edit
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
select * from table
where col1||col2||col3||col4||co
or col1||col2||col3||col4||co
or col1||col2||col3||col4||co
or col1||col2||col3||col4||co