This should work:
select * from mytable where 'Journal'=ANY(pub_types);
i.e. the syntax is <value> = ANY ( <array> )
. Also notice that string literals in postresql are written with single quotes.
More Related Contents:
- Why the “Group BY” by month didn’t work? [closed]
- What to do with null values when modeling and normalizing?
- Postgres: INSERT if does not exist already
- postgres default timezone
- quick random row selection in Postgres
- How to close idle connections in PostgreSQL automatically?
- postgresql – replace all instances of a string within text field
- Is it possible to have autoincrement number without it being an ID?
- PostgreSQL: Modify OWNER on all tables simultaneously in PostgreSQL
- pgadmin4 : postgresql application server could not be contacted.
- PostgreSQL error ‘Could not connect to server: No such file or directory’
- Insert if not exists, else return id in postgresql
- function returns multiple columns as a single column instead of multiple columns
- Sequences not affected by transactions?
- Postgres FOR LOOP
- Storing Images in PostgreSQL
- Psql could not connect to server: No such file or directory, 5432 error?
- Strange behaviour in Postgresql
- Postgres: Distinct but only for one column
- In PostgreSQL, how to insert data with COPY command?
- Cursor based records in PostgreSQL
- Maximum characters in labels (table names, columns etc)
- Configuration parameter work_mem in PostgreSQL on Linux
- How to work with PGpoint for Geolocation using PostgreSQL?
- PostgreSQL disable more output
- PostgreSQL array_agg order
- Postgres table column name restrictions?
- PostgreSQL jsonb, `?` and JDBC
- Syntax error at end of input in PostgreSQL
- Error when pushing data to Heroku: time zone displacement out of range