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');
* Welcome to Gyaan Kunja Tuition Centre podcast. I'm your host, Rohan, and today we are tackling a topic that haunts the nightmares of s...
No comments:
Post a Comment