One Table having two rows with one colomn having values
Like"Male" and "Female". how to upadte these values
Like "Female" and "Male" in single update statement.
Answer Posted / selvaraj anna university coe
UPDATE Eptbl SET Sex=DECODE
(Sex,'Male','Female','Female','Male');
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
what is meant by magic query
What is a schema in oracle?
What is a lookup table in oracle?
How to lock and unlock a user account in oracle?
What is the difference between truncate & delete command?
How to write numeric literals in oracle?
What is the sql query to concatenate column values from multiple rows in oracle?
How to delete multiple rows from a table in oracle?
In XIR2 if we lost the administration password .How can we regain the password?thanks in advance.
How to use "while" statements in oracle?
How to load a large xml file?
State the difference along with examples between Oracle 9i, Oracle 10g and Oracle 11i.
How to use "for" statements in oracle?
What is transaction control statement and how many types of transaction control statement in Oracle?
Can we store pictures in the database and if so, how it can be done?