there are 2 variables called x and y ,x contains 1,2 and y
contains 3,4 we have to swap the values from x to y and y
to x with out using dummy variables and it can be done only
by using a single statement ? how?
Answer Posted / sheshadri
String x="1,2";
String y="3,4";
x=(y+"$"+(y=x)).split("[$]")[0];
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain cursor types?
Is grant a ddl statement?
Where is pl sql used?
What is over () in sql?
How does postgresql compare to mysql?
What is an index in sql with example?
What is aggregate function in sql?
How do sql triggers work?
Which join is like inner join?
How do I find duplicates in sql?
What do you mean by stored procedures? How do we use it?
What is the meaning of disabling a trigger?
what is the difference between a web-garden and a web-farm? : Sql dba
What is data profiling in sql?
what are the different index configurations a table can have? : Sql dba