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

Home -> Community -> Usenet -> c.d.o.misc -> Re: query to delete last record of a table

Re: query to delete last record of a table

From: Frank van Bortel <fvanbortel_at_netscape.net>
Date: Mon, 18 Apr 2005 12:47:45 +0200
Message-ID: <d4031l$gmf$1@news6.zwoll1.ov.home.nl>


cricketunes_at_yahoo.com wrote:
> How can i find the highest value when the available values are C1, C2,
> C3....C10?
>

You don't even have a decent primary key... Do not ever, never ever, NEVER put *codes* in your keys.

How do you update the numerical part, anyway? Use that, and construct the primary key similar to what you do upon inserts

-- 
Regards,
Frank van Bortel
Received on Mon Apr 18 2005 - 05:47:45 CDT

Original text of this message

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