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

ASSEB Class IX English Textbook:Moments, Chapter 2: The Adventures of Toto Additional Questions and Answers

Chapter: The Adventures of Toto Addtional Questions and Answers Multiple Choice Questions (MCQs) 1. Who is the author of "The...