How to export in phpmyadmin not include id column (the AUTO_INCREMENT column)(如何在 phpmyadmin 中导出不包含 id 列(AUTO_INCREMENT 列))
问题描述
我的数据库结构是:
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
`address` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`tel` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
`longitude` int(6) NOT NULL,
`latitude` int(6) NOT NULL,
`type` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
因为我想备份,但我不想在导出到文件 (.sql) 时包含 id
我该怎么办?
As I want to backup, but I don't want to include id when export to file (.sql)
How can I do?
推荐答案
转到 SQL 选项卡并手动编写没有 id 列(SELECT name, address, ... FROMyour_table).然后,一旦您获得带有结果的表格,向下滚动到页面底部,您将在灰色的查询结果操作"字段集中看到导出图标.这应该对你有用.
Go to SQL tab and manually write your select query without id column (SELECT name, address, ... FROM your_table).
Then once you get the table with the results, scroll down to the bottom of the page and you'll see export icon inside the gray "Query results operations" fieldset. This should work for you.
每个请求的屏幕截图(见最底部):
Screenshot per request (see very bottom):
这篇关于如何在 phpmyadmin 中导出不包含 id 列(AUTO_INCREMENT 列)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 phpmyadmin 中导出不包含 id 列(AUTO_INCREMENT 列)
基础教程推荐
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- Web 服务器如何处理请求? 2021-01-01
- 将变量从树枝传递给 js 2022-01-01
- php中的PDF导出 2022-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- php中的foreach复选框POST 2021-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
