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

delete a row in a table but id column of row should remain and all other record must be shift

$
0
0

hi,

i m doing a stuff where i need to delete a row but i need to delete a row in a table but id column of row should remain and all other record must be shifted upward using sqlserver 2005

example

p_idp_name
1alan
2Brad
3

George

So , now i need to delete alan from table but id will sustain and brad and george will shift upward like

p_idp_name
1Brad
2George

how can i use this concept in my project

regards

aziz


Viewing all articles
Browse latest Browse all 4729

Trending Articles



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