sql - Find columns with NULL values in Teradata -


i find columns in table has null value in it. there system table have information?

to find columns "null" values allowed try...

select * dbc.columns  databasename = 'your_db_name' , tablename = 'your_table_name' , nullable = 'y' 

then identify specific rows w/ null values, take "columnname" previous result set , run queries identify results... perhaps throw them in volatile table if want take further action on them (update,delete).

-- example found out column "foo" nullable...  create volatile table isnull_foo_col (   sel *    your_table_name    foo null ) data  on commit preserve rows; 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -