Drop files here

SQL upload ( 0 ) x -

Page-related settings Click on the bar to scroll to top of page
Press Ctrl+Enter to execute query Press Enter to execute query
ascending
descending
Order:
Debug SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse Expand Show trace Hide trace Count : Time taken :
Bookmarks
Refresh
Add
No bookmarks
Add bookmark
Options
Set default





Collapse Expand Requery Edit Explain Profiling Bookmark Query failed Database : Queried time :
Browse mode
Customise browse mode.
Browse mode
Documentation Use only icons, only text or both. Restore default value
Documentation Use only icons, only text or both. Restore default value
Documentation Whether a user should be displayed a "show all (rows)" button. Restore default value
Documentation Number of rows displayed when browsing a result set. If the result set contains more rows, "Previous" and "Next" links will be shown. Restore default value
Documentation SMART - i.e. descending order for columns of type TIME, DATE, DATETIME and TIMESTAMP, ascending order otherwise. Restore default value
Documentation Highlight row pointed by the mouse cursor. Restore default value
Documentation Highlight selected rows. Restore default value
Documentation Restore default value
Documentation Restore default value
Documentation Repeat the headers every X cells, 0 deactivates this feature. Restore default value
Documentation Maximum number of characters shown in any non-numeric column on browse view. Restore default value
Documentation These are Edit, Copy and Delete links. Restore default value
Documentation Whether to show row links even in the absence of a unique key. Restore default value
Documentation Default sort order for tables with a primary key. Restore default value
Documentation When browsing tables, the sorting of each table is remembered. Restore default value
Documentation For display Options Restore default value
SELECT * FROM `event`
Edit inline ] [ Edit ] [ Explain SQL ] [ Create PHP code ] [ Refresh ]
Full texts db name body definer execute_at interval_value interval_field created modified last_executed starts ends status on_completion sql_mode comment originator time_zone character_set_client collation_connection db_collation body_utf8
Edit Edit Copy Copy Delete Delete
DELETE FROM event WHERE `event`.`db` = 'inventory_management' AND `event`.`name` = 'refresh_inventory_summary'
inventory_management refresh_inventory_summary
CALL RefreshInventorySummary()
root@localhost NULL 1 MINUTE 2025-07-12 08:16:36 2025-07-12 08:16:36 2025-08-12 19:31:00 2024-12-31 21:00:00 NULL ENABLED DROP NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... 1 SYSTEM utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
CALL RefreshInventorySummary()
Edit Edit Copy Copy Delete Delete
DELETE FROM event WHERE `event`.`db` = 'inventory_management' AND `event`.`name` = 'DailyInventoryExport'
inventory_management DailyInventoryExport
BEGIN
  -- Call the stored procedure to export inventory data
  CALL ExportInventoryData();
END
root@localhost NULL 1 DAY 2025-07-31 09:13:58 2025-07-31 09:13:58 2025-08-11 23:00:00 2025-07-31 23:00:00 NULL ENABLED DROP NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... 1 SYSTEM utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
BEGIN
  -- Call the stored procedure to export inventory data
  CALL ExportInventoryData();
END
Edit Edit Copy Copy Delete Delete
DELETE FROM event WHERE `event`.`db` = 'delivery_db' AND `event`.`name` = 'delete_orphaned_loads_daily'
delivery_db delete_orphaned_loads_daily
BEGIN
    -- Delete load records that have no associated bills
    DELETE bl FROM bill_loads_tbl bl
    LEFT JOIN bills_tbl bt ON bl.load_id = bt.load_id
    WHERE bt.load_id IS NULL;
    
    -- Optional: Log the action (if you have a logging table)
    -- INSERT INTO event_logs (event_name, description, executed_at)
    -- VALUES ('delete_orphaned_loads', CONCAT(ROW_COUNT(), ' orphaned load records deleted'), NOW());
END
root@localhost NULL 1 DAY 2025-08-06 20:27:28 2025-08-06 20:27:28 2025-08-11 21:00:00 2025-08-05 21:00:00 NULL ENABLED DROP NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... 1 SYSTEM utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
BEGIN
    -- Delete load records that have no associated bills
    DELETE bl FROM bill_loads_tbl bl
    LEFT JOIN bills_tbl bt ON bl.load_id = bt.load_id
    WHERE bt.load_id IS NULL;
    
    -- Optional: Log the action (if you have a logging table)
    -- INSERT INTO event_logs (event_name, description, executed_at)
    -- VALUES ('delete_orphaned_loads', CONCAT(ROW_COUNT(), ' orphaned load records deleted'), NOW());
END
Edit Edit Copy Copy Delete Delete
DELETE FROM event WHERE `event`.`db` = 'sales_inventory_db' AND `event`.`name` = 'evt_refresh_materialized_views'
sales_inventory_db evt_refresh_materialized_views
CALL RefreshMaterializedViews()
root@localhost NULL 1 DAY 2025-12-18 15:27:45 2025-12-18 15:27:45 NULL 2025-12-18 23:00:00 NULL ENABLED DROP NO_AUTO_VALUE_ON_ZERO 1 SYSTEM utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
CALL RefreshMaterializedViews()
Edit Edit Copy Copy Delete Delete
DELETE FROM event WHERE `event`.`db` = 'sales_inventory_db' AND `event`.`name` = 'evt_maintain_partitions'
sales_inventory_db evt_maintain_partitions
CALL MaintainMonthlyPartitions()
root@localhost NULL 7 WEEK 2025-12-18 15:27:45 2025-12-18 15:27:45 NULL 2025-12-23 00:00:00 NULL ENABLED DROP NO_AUTO_VALUE_ON_ZERO 1 SYSTEM utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
CALL MaintainMonthlyPartitions()
With selected: With selected:
Query results operations Copy to clipboard Copy to clipboard Export Export Display chart Display chart Create view Create view
Bookmark this SQL query Bookmark this SQL query