如何在 phpmyadmin 中导出不包含 id 列(AUTO_INCREMENT 列)

How to export in phpmyadmin not include id column (the AUTO_INCREMENT column)(如何在 phpmyadmin 中导出不包含 id 列(AUTO_INCREMENT 列))
本文介绍了如何在 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 列)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Convert JSON integers and floats to strings(将JSON整数和浮点数转换为字符串)
in php how do I use preg replace to turn a url into a tinyurl(在php中,如何使用preg替换将URL转换为TinyURL)
all day appointment for ics calendar file wont work(ICS日历文件的全天约会不起作用)
trim function is giving unexpected values php(Trim函数提供了意外的值php)
Basic PDO connection to MySQL(到MySQL的基本PDO连接)
PHP number_format returns 1.00(Php number_Format返回1.00)