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

how to find the First and Last Observation from the table: Ex: OBS Name Sal Ans like: OBS Name Sal 105 E 5000--> 105 E 5000 102 B 2000 104 D 4000 103 C 3000 101 A 1000--> 104 D 4000

4 Answers  


What do you mean by dbms? What are its different types?

0 Answers  


Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?

0 Answers  


What is the difference between function, procedure and package in pl/sql?

0 Answers  


What is basic structure of pl sql?

0 Answers  






What is the location of pre_defined_functions.

0 Answers  


How do you optimize a stored procedure query?

0 Answers  


If a View on a single base table is manipulated will the changes be reflected on the base table?

5 Answers  


Why is the cursor important?

0 Answers  


What language is oracle sql developer?

0 Answers  


Is grant a ddl statement?

0 Answers  


How do I view a table in sql?

0 Answers  


Categories