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');
AHSEC| CLASS 11| LOGIC & PHILOSOPHY| QUESTION PAPER - 2015| H.S. 1ST YEAR 2015 LOGIC & PHILOSOPHY Full Marks: 100 Time: 3 hours Th...
No comments:
Post a Comment