Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
ooi_happiness
Starting Member
22 Posts |
Posted - 2008-02-27 : 02:33:17
|
| I got a table, and inside column 1, i wish to insert number by increase into every rows untill column 2 has no record, how to do that? EXPECT OUTPUT EXAMPLECOLUMN 1 COLUMN 2-------- --------10000 ghjgh10001 asdasd10002 yhhh10003 pkoprt10004 4545010005 tgtged10006 retgret. .. .and so onSTOP WHEN NO RECORD |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-02-27 : 02:41:54
|
| Make column1 identity column or use ROW_NUMBER() function if you are using SQL 2005 |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|