Re: [SQL] How to update record in a specified order

2002-08-09 Thread Josh Berkus
JLL, So, you want to update a field with a NEXTVAL counter, but with the counter ordered by another column? If so, you will have to use a procedure. Ordering your UPDATEs is not part of SQL -- it requires a procedural element. Here's a simple procedure (you debug it): CREATE PROCEDURE ad

Re: [SQL] How to update record in a specified order

2002-08-09 Thread Dan Langille
On 9 Aug 2002 at 14:37, Josh Berkus wrote: > JLL, > > > I want to update a field with a 'NEXTVAL', but I want the record updated > > in a specific order. > > Any simple way of doing this other than having to create a temp table? > > Please be more speciifc. What do you mean, "specified order"?

Re: [SQL] How to update record in a specified order

2002-08-09 Thread Jean-Luc Lachance
As in an order by clause... If it existed. Josh Berkus wrote: > > JLL, > > > I want to update a field with a 'NEXTVAL', but I want the record updated > > in a specific order. > > Any simple way of doing this other than having to create a temp table? > > Please be more speciifc. What do you me

Re: [SQL] How to update record in a specified order

2002-08-09 Thread Josh Berkus
JLL, > I want to update a field with a 'NEXTVAL', but I want the record updated > in a specific order. > Any simple way of doing this other than having to create a temp table? Please be more speciifc. What do you mean, "specified order"? -- -Josh Berkus Aglio Database Solutions San Franci

[SQL] How to update record in a specified order

2002-08-09 Thread Jean-Luc Lachance
Hi all, I want to update a field with a 'NEXTVAL', but I want the record updated in a specific order. Any simple way of doing this other than having to create a temp table? JLL ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? h