Update cycle_notification_history_in_batches.sql

This commit is contained in:
poveyd
2020-05-04 15:17:45 +01:00
committed by GitHub
parent da3b155ae8
commit 37f5981de8

View File

@@ -2,9 +2,7 @@
CREATE TABLE notification_history_pivot AS SELECT * from notification_history WHERE 1=2;
SELECT id
INTO nh_temp
FROM notification_history;
CREATE TEMPORARY TABLE nh_temp AS SELECT id FROM notification_history;
SELECT COUNT(*) AS 'Total number of rows in nh' FROM nh_temp;