Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Looping in SQL sever

$
0
0

I have students table having 50 records

Table ----->SId,SName,Marks,ClassId

In this table i have 10 records which are having ClassId value 0 ---> for these 10 records i want to change student names to

StudentName+1

StudentName+2

StudentName+3

.

.

.

StudentName+10.

Plz help in doing this.


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>