vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm trying to dynamically create a series of rows. For example, rows with just values 1 through 5. I can think of how this can be done in Oracle: select rownum from employees where rownum <= 5 which will give me: rownum ------- 1 2 3 4 5 Is there a way to do this in Sybase? Onassis |
| |||
| Hi , You canuse the idenity column feature of the ASE ( sybase ). all that you hvae to do it is declare one of the the field to be identity column. It will generate the sequence number. Read the sybase manuals at manuals.sybase.com/as.htmt for the identity columsn . Still you have then i will be send you how to do that . ( I would suggest you to read the feature which help you in future ). Regards Navneet ocayetano@gmail.com wrote: > I'm trying to dynamically create a series of rows. For example, rows > with just values 1 through 5. I can think of how this can be done in > Oracle: > > select rownum from employees where rownum <= 5 > > which will give me: > rownum > ------- > 1 > 2 > 3 > 4 > 5 > > Is there a way to do this in Sybase? > > Onassis |
| Thread Tools | |
| Display Modes | |
|
|