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
Sql server reporting services vs. Crystal reports.
can any body tell me how to know the password of current user in sql server
What is the difference between delete and truncate statements?
What are the joins in sql server? : sql server database administration
what is a major difference between sql server 6.5 and 7.0 platform wise? : Sql server database administration
What is service broker?
What is row_number () and partition by in sql server?
Explain unique key in sql server?
Do you know query execution plan?
How to check what was the last restore transaction LSN in Log shipping or Mirroring? when we don't have a Monitor or witness server.
How to check table values in sql server?
How do I know if localdb is running?
How to select some specific rows from a table in ms sql server?
What happens if an integer is too big for int date type?
How to configure and test odbc dsn settings?