In a table only one column how to update rows
Answer Posted / rajesh venati
It is also work,
UPDATE TABLE_NAME SET COL_NAME=NEW_VALUE WHERE
COL_NAME=OLD_VALUE;
EX:-
SQL> SELECT * FROM RAJ;
EMPNO
----------
100
200
300
4
SQL> UPDATE RAJ SET EMPNO=400 WHERE EMPNO=4;
1 row updated.
SQL> SELECT * FROM RAJ;
EMPNO
----------
100
200
300
400
Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
How does rowid help in running a query faster?
What are the types of subqueries?
Mention what problem one might face while writing log information to a data-base table in pl/sql?
Can we create table in function?
What is the purpose of my sql?
How to use boolean type in select statement?
Define sql delete statement.
how to write date and time literals? : Sql dba
Why having clause is used in sql?
Which data dictionary views have the information on the triggers that are available in the database?
what is a relationship and what are they? : Sql dba
in oracle 10g sw after compiling procedure how to pass parameter values ,if we (v_empid out number)how to give empid after successful compilation program.This site exact suitable for 10g with respect to question & answer same format , im trying sql browser & sql command prompt using exec procedure name & respective parameters.
How can get second highest salary in sql?
what is the difference between join and union? : Sql dba
How do you identify a primary key?