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

Class 10 Maths Exercise 1.4 Assamese Medium

Class 10 Maths Exercise 1.4 Assamese Medium ১) দীৰ্ঘ হৰণ নকৰাককৈ তলত উল্লেখ কৰা পৰিমেয় সংখ্যাবোৰৰ কোনবোৰৰ দশমিক বিস্তৃতি পৰিসমাপ্ত (সাবধি)...