Redirect Image

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

NCERT Class X Mathematics Chapter 1: Real Numbers

Chapter 1: Real Numbers Comprehensive Study Notes, Day-by-Day Explanations, and Question Bank Part 1: Day-to-Day Study Notes ...