How to insert sequential numbers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Firewalker

    #1

    How to insert sequential numbers

    Hello guys,
    I need your help with this. I have a table that ,say, has 10 rows in it. One
    of the columns is called ID and has an integer number. I would like to
    change the ID number of all the rows by ascending numbers starting from 5.
    For example, row number 1 has ID number 5 , row 2 has 6, row 3 has 7 and so
    on:

    5;.;.;.;.;
    6;.;.;.;.;
    7;.;.;.;.;
    8;.;.;.;.;
    ..
    ..
    ..
    15;.;.;.;

    How can I do this? Thank you very much for all your efforts.


  • Chris Hope

    #2
    Re: How to insert sequential numbers

    Firewalker wrote:
    [color=blue]
    > Hello guys,
    > I need your help with this. I have a table that ,say, has 10 rows in it.
    > One of the columns is called ID and has an integer number. I would like to
    > change the ID number of all the rows by ascending numbers starting from 5.
    > For example, row number 1 has ID number 5 , row 2 has 6, row 3 has 7 and
    > so on:
    >
    > 5;.;.;.;.;
    > 6;.;.;.;.;
    > 7;.;.;.;.;
    > 8;.;.;.;.;
    > .
    > .
    > .
    > 15;.;.;.;
    >
    > How can I do this? Thank you very much for all your efforts.[/color]

    This was discussed in alt.comp.lang.p hp a little while back. You can browse
    the thread at Google Groups here http://tinyurl.com/4pnc8

    --
    Chris Hope - The Electric Toolbox - http://www.electrictoolbox.com/

    Comment

    Working...