What happens “Update” command is used without where clause ?

Showing Answers 1 - 3 of 3 Answers

maxiee

  • Jun 24th, 2005
 

It will update all the records with same name in the particular field of the table.

  Was this answer useful?  Yes

Krishna

  • Sep 1st, 2005
 

If we dont mwntion "WHERE" clause in the UPDATE statement, it will update all records satisfying the given condition (if given any ) in the table !

  Was this answer useful?  Yes

Based on query condition. it wil update all the fields which are mentioned in the query.

ex: update employee set firstname= @firstname,lastname=@lastname where employee_id =@employee_id.

so in the above case nothing wil be happen if you used where clause or not.

if you have  many statements in the query u need to use the where clause.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions