• 點部落
  • 首頁
  • RSS
    • 登入

supersu的大小事

supersu

2018-03-10

提升mysql 效率

  • 71
  • 0

提升mysql 效率

START TRANSACTION;

COMMIT;

START TRANSACTION;
SELECT @A:=SUM(salary) FROM table1 WHERE type=1;
UPDATE table2 SET summary=@A WHERE type=1;
COMMIT;



http://xyz.cinc.biz/2013/05/mysql-transaction.html

https://dev.mysql.com/doc/refman/5.7/en/commit.html

https://itw01.com/GSPFEZP.html

  • 回首頁
  • 服務規範
  • 聯絡我們
© 2025 點部落 Ver. 1.0.0.0
電魔小鋪有限公司 製作、維運;登豐數位科技 提供資安檢測