Follow us: Connect on YouTube Connect on YouTube Connect on YouTube

Pages

Tuesday, 11 April 2017

SQL Update Table



This can be used to modify the table data.

Syntax:
     Update <table_name> set <col1> = value1, <col2> = value2 where <condition>;

Example:

     SQL> UPDATE student SET marks = 500;


     If you are not specifying any condition this will update entire table.

     SQL> UPDATE student SET marks = 500 WHERE no = 2;
     SQL> UPDATE student SET marks = 500, name = 'Venu'  WHERE no = 1;




Share this article :

1 comments:

  1. Oracle Apps R12 and Oracle Fusion Cloud Self Paced Online Training Videos Published on Udemy with Life Time Access & Live Meeting Support to Clear your Queries. Avail 25% to 80% discount. Please Check https://www.oracleappstechnical.com for Never Before Offers and Discount Coupon Codes.

    ReplyDelete