How to swap the data of two columns in a table. both the
columns containing varchar values.
Answer Posted / sandeep rana
create table tmp_t
(
aa varchar2(50),
bb varchar2(50)
)
--insert into tmp_t values('1','5')
select * from tmp_t
update tmp_t set aa=bb , bb=aa
| Is This Answer Correct ? | 7 Yes | 12 No |
Post New Answer View All Answers
What is surrogate key? : sql server analysis services, ssas
What are the purposes and advantages stored procedure?
Difference between drill down and drill through report.
Is null in sql server?
What is recompile sql server?
What is normalization? What number of normalization shapes are there?
can an automatic recovery be initiated by a user? : Sql server administration
How to create an multi-statement table-valued function?
Do you know what is normalization of database? What are its benefits?
How to check parameter value in stored procedure sql server?
What is the Main Difference between ACCESS and SQL SERVER?
How to change the ownership of a schema in ms sql server?
What is the report builder?
Why use view instead of a table?
What is command parameter in ssrs?