Need a query that works in both cases when column type is either text or text[] – Postgresql
Following are my 2 tables CREATE TABLE temptext ( id text ); CREATE TABLE temptext2 ( id _text ); My insert queries are INSERT INTO temptext (id)VALUES ('a'); INSERT INTO temptext2 (id)VALUES ('{c,d,e,a}'); I have 2 queries that run perfectly…