当前位置:首页 » 操作系统 » 数据库查表头

数据库查表头

发布时间: 2024-04-15 13:44:18

① mysql镆ユ垒涓涓鏁版嵁搴扑腑镓链夌壒瀹氩墠缂镄勮〃

php 涓崭细銆

mysql 閲岄溃锛 镆ヨ 琛ㄧ殑淇℃伅锛 鎴戝掓槸浼氱殑銆

鏄浠 information_schema.tables 杩欓噷镆ヨ㈢殑銆

涓嬮溃鏄涓涓渚嫔瓙锛

mysql> SELECT table_name, table_type, engine
-> FROM information_schema.tables
-> WHERE table_schema = 'test'
-> ORDER BY table_name DESC;
-> //
+--------------------+------------+--------+
| table_name | table_type | engine |
+--------------------+------------+--------+
| v_sale_report_x | VIEW | NULL |
| v_sale_report | VIEW | NULL |
| union_tab_2 | BASE TABLE | InnoDB |
| union_tab_1 | BASE TABLE | InnoDB |
| test_trigger_table | BASE TABLE | InnoDB |
| test_tab2 | BASE TABLE | InnoDB |
| test_tab | BASE TABLE | InnoDB |
| test_main | BASE TABLE | InnoDB |
| test_dysql | BASE TABLE | InnoDB |
| test_create_tab4 | BASE TABLE | InnoDB |
| test_create_tab2 | BASE TABLE | InnoDB |
| test_create_tab1 | BASE TABLE | InnoDB |
| test_create_tab | BASE TABLE | InnoDB |
| sale_report | BASE TABLE | InnoDB |
| log_table | BASE TABLE | InnoDB |
+--------------------+------------+--------+
15 rows in set (0.02 sec)

② mysql 如何使用sql查询某一个表的表头

工具/材料:Management Studio。

1、首先在桌面上,点击“Management Studio”图标。

热点内容
怎么猜qq密码 发布:2025-09-15 10:02:42 浏览:287
新雅阁2022低配有哪些配置 发布:2025-09-15 10:02:06 浏览:787
缓存新闻联播的软件 发布:2025-09-15 09:56:45 浏览:152
如何用编译软件写唐诗 发布:2025-09-15 09:35:20 浏览:180
手机登录到安卓系统会怎么样 发布:2025-09-15 09:26:03 浏览:425
androidpersistent 发布:2025-09-15 09:17:12 浏览:854
安卓11公测版有什么功能 发布:2025-09-15 09:15:55 浏览:235
2016年编程语言 发布:2025-09-15 09:14:15 浏览:729
脚本或可运行的程序 发布:2025-09-15 09:11:18 浏览:693
setuptools源码 发布:2025-09-15 08:53:06 浏览:153