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

Home -> Community -> Usenet -> c.d.o.server -> Simple performance question regarding INSERT statement

Simple performance question regarding INSERT statement

From: Russ Reynolds <rrey2279_at_aol.com>
Date: 12 Nov 2004 07:35:11 -0800
Message-ID: <2a73e567.0411120735.a80672@posting.google.com>


Let's say you have a table:

CREATE TABLE products
(

prod_id       int(10),
prod_name     varchar(30),
prod_desc     varchar(100),
prod_category varchar(10),
active        boolean

)

Is performance affected if the columns in your INSERT statements are not in-line with the CREATE TABLE declarations. For example,

--Column list out of order
INSERT INTO products (active, prod_id, prod_category, prod_desc, prod_name)
VALUES (TRUE, 100001, 'Outdoor', 'Best Lawnmower Available', 'Lawnmower');

Let's say you were going to do 100,000 INSERTS at one time. Will performance be degraded, and to what degree? Received on Fri Nov 12 2004 - 09:35:11 CST

Original text of this message

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