MESSAGE
DATE | 2014-11-24 |
FROM | Ruben
|
SUBJECT | Re: [LIU Comp Sci] Oracle DBA short cuts
|
From owner-learn-outgoing-at-mrbrklyn.com Mon Nov 24 13:50:55 2014 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix) id B7AB7161154; Mon, 24 Nov 2014 13:50:55 -0500 (EST) Delivered-To: learn-outgoing-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 28) id 9E19C16115B; Mon, 24 Nov 2014 13:50:55 -0500 (EST) Delivered-To: learn-at-mrbrklyn.com Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mrbrklyn.com (Postfix) with ESMTP id C3CE4161154 for ; Mon, 24 Nov 2014 13:50:53 -0500 (EST) Received: by mail-qa0-f54.google.com with SMTP id i13so6932049qae.27 for ; Mon, 24 Nov 2014 10:50:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=dn9a+uaomx0tPNwkr+DeyuqDL/ajrtwMjfD1Prc4S/M=; b=Afx1Bs44X0oibNoSuShI/pNDThD8yU3ArldJgea860o4QErBindWIA3PqYilKmSmz9 MK+w1488E/B9bnk6WmzlPWQ0tM7IBbEZP4rJnO58KebwnWyppvzZszmPEzqAn2sAp6HO FsEUv9NPMpYUORbQnqaJPN0gwRMPQFUTCvjA4mLIq5zzJGdPquoeSP9NjQvatiT7UXrF KH0legUUCnRsk+mv1nNMi5pdAFZxki05UK/Xg3uem9WJmSQQIR03U55O4r+WBWu422pR WULTOFan9EnhBakAbD9zOTOKFSGY3/OFRrOHHoSbMOz3ymwCnPMSxWscCJ7YfkRWBzec w9oQ== X-Gm-Message-State: ALoCoQn5OTF+zXpd2nQwtcp0lp+ht9mzhzMAREhULtEn1pcf9B81FnNT7HXWAIczrm262QhR3uOt X-Received: by 10.140.102.116 with SMTP id v107mr30444432qge.68.1416855052783; Mon, 24 Nov 2014 10:50:52 -0800 (PST) Received: from [10.0.0.42] ([96.57.23.82]) by mx.google.com with ESMTPSA id f65sm12523908qgf.41.2014.11.24.10.50.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Nov 2014 10:50:52 -0800 (PST) Message-ID: <54737E53.8000904-at-my.liu.edu> Date: Mon, 24 Nov 2014 13:52:03 -0500 From: Ruben User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: learn-at-mrbrklyn.com Subject: Re: [LIU Comp Sci] Oracle DBA short cuts References: <54737DB7.2080706-at-panix.com> In-Reply-To: <54737DB7.2080706-at-panix.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: owner-learn-at-mrbrklyn.com Precedence: bulk Reply-To: learn-at-mrbrklyn.com
SELECT * FROM user_cons_columns WHERE table_name = ''; FYI, unless you specifically created your table with a lower case name (using double quotes) then the table name will be defaulted to upper case so ensure it is so in your query.
If you then wish to see more information about the constraint itself query the USER_CONSTRAINTS view:
SELECT * FROM user_constraints WHERE table_name = '' AND constraint_name = ''; If the table is held in a schema that is not your default schema then you might need to replace the views with:
all_cons_columns and
all_constraints adding to the where clause:
AND owner = ''
|
|