Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Insert without telling column names

RE: Insert without telling column names

From: Diana Duncan <dduncan_at_arsenaldigital.com>
Date: Tue, 20 Mar 2001 10:08:24 -0800
Message-ID: <F001.002D1D33.20010320083626@fatcity.com>

Roland,

Check out the SQL manual, the syntax diagram clearly illustrates that you don't need to explicitly name the column names as long as you are inserting into all of the columns in the order they are defined in the data dictionary.

insert into table_A values ('Hi', 'there');

A word of friendly caution -- the list will rapidly recognize you by name and fail to answer questions when it is obvious that you haven't taken the time to 1) try it yourself and 2) read the docs. Also, you need to give more information in your queries. We realize that Oracle is a big, bad world and there is a lot to know, but most of us don't have the time to answer every question every newbie has. I, of course, am an exception at the moment since I am just killing time this week waiting to be laid off...

Regards,

Diana

-----Original Message-----
Sent: Tuesday, March 20, 2001 9:31 AM
To: Multiple recipients of list ORACLE-L

Hallo,

How can I create an insert statement without telling all the names of the columns?
Give an example, please.

Roland Sköldblom

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: Roland.Skoldblom_at_ica.se

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (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: Diana Duncan INET: dduncan_at_arsenaldigital.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (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).
Received on Tue Mar 20 2001 - 12:08:24 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US