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 / apsar
update tbl_name set (a,b) = (select b,a from tbl_name where a='Male');
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to pass parameters to procedures?
What are the execution control statements?
Where are the settings stored for each instance in oracle?
Can we connect to ORACLE db using Windows Authentication?
How does one get the view definition of fixed views/tables?
Can you create a synonym without having a table?
What are the system predefined user roles?
State and explain about oracle instance?
What is a tns file?
How do I call oracle stored procedures that take no parameters?
What are dml statements in oracle?
How to update values in a table in oracle?
How would you begin to troubleshoot an ORA-3113 error?
State the difference along with examples between Oracle 9i, Oracle 10g and Oracle 11i.
How do I limit the number of rows returned by an oracle query after ordering?