I’d like to create a table out of the dataset generated by teradata’s “help table” function so i can add some more information about the table, and be able to filter the rows by conditions. the table has 400+ columns, so this would be very convenient for management. I’d like to be able to do something similar to creating a table as select, but it doesn’t work with the help table syntax. short of exporting the data to excel, then manually creating the table schema and importing the table back in, does anyone know how to convert the output of a help table query into a table in teradata?
Share
The output from the HELP TABLE command comes from Data Dictionary.
If I understand correctly, you want to create a new table with the following output.
You can get all of those three columns (or even more) from the table DBC.TVFields.
But first we need to find out DatabaseId and TableId.
Now you can list all the columns you need and store them correspondingly.