List TABLE_NAME, COLUMN_NAME for all NOT NULL columns in a schema

2002-12-09 Thread Charlie_Mengler

OK, I started out thinking that this would be easy.
What is a pure SQL solution which generates a results set
containing a list of TABLE_NAME, COLUMN_NAME for all
NOT NULL columns in a schema?


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




RE: List TABLE_NAME, COLUMN_NAME for all NOT NULL columns in a sc

2002-12-09 Thread DENNIS WILLIAMS
Charlie - Does this sound like what you want?

  1  select table_name, column_name
  2  from user_tab_columns
  3* where nullable = 'Y' 

Dennis Williams
DBA, 40%OCP
Lifetouch, Inc.
[EMAIL PROTECTED] 


-Original Message-
[mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 3:55 PM
To: Multiple recipients of list ORACLE-L
schema



OK, I started out thinking that this would be easy.
What is a pure SQL solution which generates a results set
containing a list of TABLE_NAME, COLUMN_NAME for all
NOT NULL columns in a schema?


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: DENNIS WILLIAMS
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




RE: List TABLE_NAME, COLUMN_NAME for all NOT NULL columns in a sc

2002-12-09 Thread Jeremy Pulcifer
Title: RE: List TABLE_NAME, COLUMN_NAME for all NOT NULL columns in a schema





SELECT table_name,column_name
FROM user_tab_columns
WHERE nullable = 'N';


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 09, 2002 1:55 PM
 To: Multiple recipients of list ORACLE-L
 Subject: List TABLE_NAME, COLUMN_NAME for all NOT NULL columns in a
 schema
 
 
 
 OK, I started out thinking that this would be easy.
 What is a pure SQL solution which generates a results set
 containing a list of TABLE_NAME, COLUMN_NAME for all
 NOT NULL columns in a schema?
 
 
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 -- 
 Author: 
 INET: [EMAIL PROTECTED]
 
 Fat City Network Services -- 858-538-5051 http://www.fatcity.com
 San Diego, California -- Mailing list and web hosting services
 -
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from). You may
 also send the HELP command for other information (like subscribing).
 





Re: List TABLE_NAME, COLUMN_NAME for all NOT NULL columns in a

2002-12-09 Thread Rodd Holman
The following generates it for the entire database.

select owner, table_name, column_name
from   dba_tab_columns
where  nullable = 'N'
order by owner, table_name, column_id

For a single schema just add:

andowner = 'schemaname'

to the where clause.  If you want change the = to in and use a list of
schemas.


On Mon, 2002-12-09 at 15:54, [EMAIL PROTECTED] wrote:
 OK, I started out thinking that this would be easy.
 What is a pure SQL solution which generates a results set
 containing a list of TABLE_NAME, COLUMN_NAME for all
 NOT NULL columns in a schema?
 
 
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Rodd Holman [EMAIL PROTECTED]


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rodd Holman
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).