Answers for "mysql begin"

SQL
1

do we need to specify commit to save changes in mysql

BEGIN;
SELECT @A:=SUM(salary) FROM table1 WHERE type=1;
UPDATE table2 SET summmary=@A WHERE type=1;
COMMIT;
Posted by: Guest on July-06-2020
0

mysql begin statement

[begin_label:] BEGIN
    [statement_list]
END [end_label]
Posted by: Guest on July-05-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language