Skip to content

Commit 4b2e748

Browse files
authored
Update mysql.md
1 parent 2ec3c40 commit 4b2e748

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

content/docs/cheatsheets/mysql.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,15 @@ SELECT
173173
FROM total
174174
INNER JOIN dirt;
175175
```
176+
177+
178+
## inspect alter tables
179+
```sql
180+
SELECT
181+
EVENT_NAME,
182+
WORK_COMPLETED,
183+
WORK_ESTIMATED,
184+
ROUND(100 * WORK_COMPLETED / WORK_ESTIMATED, 2) AS pct_complete,
185+
ROUND(TIMER_WAIT / 1e12 / 60, 2) AS duration_minutes
186+
FROM performance_schema.events_stages_current;
187+
```

0 commit comments

Comments
 (0)