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 data type in database?
When is the update_statistics command used?
what is meant by nl2br()? : Sql dba
Explain normalization and what are the advantages of it?
What is cursor in pl sql with examples?
What do you think about pl/sql?
Can there be more than one function with a similar name in a pl/sql block?
How do you select unique values in sql?
What is query execution plan in sql?
what is the difference between truncate and delete statement? : Transact sql
Does a join table need a primary key?
Can unique keys be null?
What are the set operators in sql?
ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_curr_symbol" DETAILS:KEY(accnt_curr_id)(-2)is not present in the table "curr_symbol" ......solve The Problem..
How many types of cursors supported in pl/sql?