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 a derived table?
What is database replication?
Can you name a few encryption mechanisms in sql server?
How many types of database relationship in sql server?
What are pessimistic lock and optimistic lock?
What is snapshot report?
How to test values returned by a subquery with the in operator?
Explain Reporting Life Cycle?
How to delete an existing row with delete statements in ms sql server?
You want to use bids to deploy a report to a different server than the one you chose in the report wizard. How can you change the server url?
What is “asynchronous” communication in sql server service broker?
What is deploy, process and build? : sql server analysis services, ssas
How to defragment table indexes?
What are the advantages of paper records?
What is the purpose of a table?