Unix Technical Forum

Re: [Info-ingres] Re-numbering a field

This is a discussion on Re: [Info-ingres] Re-numbering a field within the Ingres forums, part of the Database Server Software category; --> Hello, You can use the sequences, it work on Ingres 2.6 (even if it's not documented but it might ...


Go Back   Unix Technical Forum > Database Server Software > Ingres

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 09:30 PM
Jean-Pierre Zuate
 
Posts: n/a
Default Re: [Info-ingres] Re-numbering a field

Hello,

You can use the sequences, it work on Ingres 2.6 (even if it's not
documented but it might have some bugs).

create sequence toto start with 1; (or start with anything you want, see
sql.doc for options [step and so on])

update your_table
set your_column = toto.nextval;

Hope this help,
Jean-Pierre

2006/11/28, stephen.mcculloch@falkirk.gov.uk <
stephen.mcculloch@falkirk.gov.uk>:
>
> Hi all
> Is there a way to run a query which could "re-number" a field
> sequentially?
>
>
>
> Stephen B McCulloch
> Software Developer
> ----------------------------
> Corporate & Commercial Services
> ICT Infrastructure (Software Development)
> Falkirk Council,
> Municipal Buildings,
> West Bridge Street,
> Falkirk, FK1 5RS
> Scotland, UK
> ------------------------------------------
> Telephone : (01324) 501523
> Fax : (01324) 501516
> E-mail : stephen.mcculloch@falkirk.gov.uk
>
>
> ************************************************** ************************
> The information contained in this e-mail is confidential and is intended
> only for the named recipient(s). If you are not the intended recipient, you
> must not copy, distribute or take any action or reliance on it. If you have
> received this e-mail in error, please notify the sender. Any unauthorised
> disclosure of the information contained in this e-mail is strictly
> prohibited.
>
> The views and opinions expressed in this e-mail are the senders own and do
> not necessarily represent the views and opinions of Falkirk Council.
> ************************************************** ************************
>
> _______________________________________________
> Info-ingres mailing list
> Info-ingres@cariboulake.com
> http://mailman.cariboulake.com/mailm...py/info-ingres
>




--
Jean-Pierre Zuate
La Fage Conseil
+33(0)6 11 40 11 09
jpzuate@gmail.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:15 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com