如何在phpmyadmin中导出不包含id列(AUTO_INCREMENT列) [英] How to export in phpmyadmin not include id column (the AUTO_INCREMENT column)

查看:351
本文介绍了如何在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, ... FROM your_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列)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆