Write a psql script to list the columns with `text` datatype
Answer:
SELECT column_name
FROM information_schema.columns
WHERE table_name = 'myTable'
AND (data_type = 'text' OR data_type = 'character varying');
In-Text Questions & Answers Section 13.1: Eco-system — What Are Its Components? Q1 (Page 212): What are t...
No comments:
Post a Comment