In a table only one column how to update rows

Answers were Sorted based on User's Feedback



In a table only one column how to update rows..

Answer / 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

In a table only one column how to update rows..

Answer / geetha

create a table with one column
select sno,rowid from test_table;
then use the rowid to update the col..
update test_table set sno = value where rowid =' '

Is This Answer Correct ?    10 Yes 7 No

In a table only one column how to update rows..

Answer / manjuanth

Answer - point 1, 2, 3, and 4 All are correct.

Is This Answer Correct ?    0 Yes 0 No

In a table only one column how to update rows..

Answer / prerit

update table_name set coloumn_name=value;

Is This Answer Correct ?    2 Yes 3 No

In a table only one column how to update rows..

Answer / geetha

create a table with one column
select sno,rowid from test_table;
then use the rowid to update the col..
update test_table set sno = value where rowid =' '

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More SQL PLSQL Interview Questions

What is the use of cursor ? how cursor allocate context area for executing the sql statement?

4 Answers   HCL,


How exception handling is done in advance pl/sql?

0 Answers  


What is Materialized View? In What Scenario we Use Materialized View?

2 Answers   Dinesh, Marlabs,


How to remove duplicate rows from a table?.

3 Answers  


What are the packages in pl sql?

0 Answers  






What is the use of sqlerrd 3?

0 Answers  


I have a small PL/SQL Block assume in this way begin select * from emp where empno=100; exception when others then <Some Messages> when no_data_found then <Some Messages> when too_many_rows then <Some Messages> end; The question which he asked was whether this block will get executed normally or it will throw error ? If errored out then what is the reason for the error ? Could anybody please help me ? Regards Nakul Venkataraman

3 Answers   Satyam,


Begin For j in 4403201000 .. 4403202000 Loop If mod (j, 100) = 0 then Dbms_output.put_line (j); End if; End loop; End; what will be the output of this question

7 Answers   TCS,


What is trigger types of trigger?

0 Answers  


What are sql data types?

0 Answers  


What is relationship? How many types of relationship are there?

0 Answers  


Is and as keyword in pl sql?

0 Answers  


Categories