1
後後,我選擇了從其他4個表值如何更新一個表:更新選擇MySQL的
SELECT
(SELECT COUNT(*) FROM racunala) as racunala,
(SELECT COUNT(*) FROM objekti) as objekti,
(SELECT COUNT(*) FROM programi) as programi,
(SELECT COUNT(*) FROM users) as korisnici,
(SELECT COUNT(*) FROM tvrtke) as tvrtke
我呼籲另一個表「累積」,我想更新基於上面的查詢該表。
UPDATE `info`.`cumulative` SET `korisnici`=korisnici, `tvrtke`=tvrtke, `objekti`=objekti, `programi`=programi, `racunala`=racunala WHERE `idcumulative`='1';
我想製作一個存儲過程,它將更新「累積」表中的所有數據。
謝謝主席先生結合起來。這正是我需要的 – RaceLt