From the Mysql database, export all the column field names of a table

Question: There are dozens of fields in a table in the database. How to get them all at once?

Directly on the code:

SELECT column_name 
FROM information_schema.COLUMNS 
WHERE table_name = 'score_model_demo';

Among them, "score_model_demo" is the name of my table, and the test is valid.

If your problem is solved, welcome to bookmark + like + follow~

Guess you like

Origin blog.csdn.net/weixin_45281949/article/details/107960670