Invitation

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

ASSEB Class XI Economics Textbook অৰ্থনীতিৰ বাবে পৰিসংখ্যা Chapter 1 Textbook Questions and Answers

১. তলৰ বাক্যবোৰ শুদ্ধনে অশুদ্ধ বিচাৰ কৰা: (i) পৰিসংখ্যা বিজ্ঞানে কেৱল পৰিমাণবাচক তথ্যহে বিচাৰ ...