Thread: RE: [SQL] Re: Autoincrement

RE: [SQL] Re: Autoincrement

From
"Jackson, DeJuan"
Date:
> At 11:06 +0300 on 20/7/98, Federico Passaro wrote:
>
>
> > When I have to pay this penalty: on insert / update / query ?
>
> Query, I think.
>
I would think you would have to pay this penalty for all accesses to
that column.  Meaning in any WHERE|ORDER BY|GROUP BY clause that the
column is accessed.  Which could be for INSERT, UPDATE, and SELECT,
DELETE.
    INSERT because if indexes
    UPDATE because of WHERE, if not indexed
   SELECT because of WHERE/ORDER BY/GROUP BY
   DELETE because of WHERE, if not indexed

    -DEJ