DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: statement & transaction

  1. #1
    Join Date
    Aug 2001
    Location
    cuddapah
    Posts
    145

    Question

    !hi

    Iam unable to understand what is the difference between

    STATEMENT AND TRANSACTION ?

    can u please solve my question with example .....



  2. #2
    Join Date
    Sep 2000
    Posts
    305
    As of my knowledge statement is a set of commands while transaction is a set of statements

    for example
    statement : = select * from tab;

    transaction :=
    select * from tab;
    insert into table_name1 (column_name) values (values);
    insert into table_name2 (column_name) values (values);
    insert into table_name3 (column_name) values (values);
    commit;


    Shailendra

  3. #3
    Join Date
    Jun 2001
    Posts
    316
    insert into a1 values (1);
    insert into a1 values (2);
    insert into a1 values (3);

    all 3 above are statements!!!


    COMMIT;
    usin commit,the changes made by the group of above statements above r made permanant....this is a TRANSACTION.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width