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 12| GEOGRAPHY| SOLVED PAPER - 2017| H.S. 2ND YEAR 2017 GEOGRAPHY Full Marks: 70 Pass Marks: 21 Time: 3 hours The figures in ...
No comments:
Post a Comment