Perhaps using SIMILAR TO
would work ?
SELECT * from table WHERE column SIMILAR TO '(AAA|BBB|CCC)%';
More Related Contents:
- Constraint defined DEFERRABLE INITIALLY IMMEDIATE is still DEFERRED?
- PL/pgSQL checking if a row exists
- Compute percents from SUM() in the same SELECT sql query
- Postgres analogue to CROSS APPLY in SQL Server
- How to find a table having a specific column in postgresql
- Postgres function returning table not returning data in columns
- Check if NULL exists in Postgres array
- How to create a new database with the hstore extension already installed?
- How to perform a select query in a DO block?
- Join a count query on generate_series() and retrieve Null values as ‘0’
- PostgreSQL – dynamic value as table name [duplicate]
- Select rows which are not present in other table
- Optimize GROUP BY query to retrieve latest row per user
- How to implement a many-to-many relationship in PostgreSQL?
- Check if value exists in Postgres array
- Is there a shortcut for SELECT * FROM?
- sql statement error: “column .. does not exist”
- What is the difference between single quotes and double quotes in PostgreSQL?
- Simulate CREATE DATABASE IF NOT EXISTS for PostgreSQL?
- Best way to count rows by arbitrary time intervals
- Sorting null values after all others, except special
- Reference alias in WHERE clause
- How to compare the current row with next and previous row in PostgreSQL?
- ERROR: functions in index expression must be marked IMMUTABLE in Postgres
- Why postgres returns unordered data in select query, after updation of row?
- Continuing a transaction after primary key violation error
- What is the difference between a LATERAL JOIN and a subquery in PostgreSQL?
- PostgreSQL – fetch the rows which have the Max value for a column in each GROUP BY group
- Parallel unnest() and sort order in PostgreSQL
- Is there a postgres CLOSEST operator?