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
what is the functionality of the function htmlentities? : Sql dba
What is difference between stored procedures and application procedures?
what are the different index configurations a table can have? : Sql dba
Where do we use pl sql?
how to shut down the server with 'mysqladmin'? : Sql dba
how many sql dml commands are supported by 'mysql'? : Sql dba
What is raid? How does it help storage of databases?
Is sql workbench free?
How to get unique records from a table?
What is primary key in db?
What is rowtype?
What is exit statement?
what is the difference between a having clause and a where clause? : Sql dba
What are the two virtual tables available at the time of database trigger execution?
Is pl sql different from sql?