MySql unpopular but useful statement

Table of contents

1 View all currently executing processes

View brief information

check the detail information

2 Query tables containing a certain field in all databases

accurate

Vague


1 View all currently executing processes

View brief information

show processlist

 

check the detail information

show full processlist

 

terminate process

kill id

2 Query tables containing a certain field in all databases

accurate

SELECT * FROM information_schema.columns WHERE column_name='column_name';

Vague

SELECT * FROM information_schema.columns WHERE column_name like '%column_name%';

result

 

Guess you like

Origin blog.csdn.net/qq_53679247/article/details/131803786