js

Monday, February 19, 2024

Write a psql script to list the columns with `text` datatype

 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');

No comments:

Post a Comment

SEBA Class X Science অধ্যায়-১৬ প্রাকৃতিক সম্পদৰ ব্যৱস্থাপনা Questions and Answers

  অধ্যায়-১৬ প্রাকৃতিক সম্পদৰ ব্যৱস্থাপনা নির্বাচিত প্রশ্নোত্তৰ প্রশ্নঃ বৃহৎ নদীবান্ধ নিৰ্মাণৰ লগত জড়িত থকা সমস্যা এটা উল্লেখ কৰা। HSL...