Replace two Column records for specified number of rows. for example...
| Custname | CustEmail |
| Muthu | |
| Ramesh | |
| Sridhar | |
| Kumar |
For above table “Custname” column Records move to “CustEmail” column records place and“CustEmail” column records move to “Custname” column Records place.
for Specified number of rows (it means effects the number of rows in table )
thank you .. .


Dipankar BiswasRank #992 · 2K reputationPosted May 13, 2015, 9:24 PM EDT
SELECT REPLACE(yourcolumn,'ValueInTheColumnTobeReplaced', 'NewValue') as replacedColumnName FROM yourtable
see more..http://forums.asp.net/t/1622369.aspx?replace+a+column+value+with+select+statement