我在 phpmyadmin 中有一个 View ,我想下载该 View 在 SQL 文件中创建的表。 (点击查看->导出数据->确定)
但是当我在 Sequel Pro 中导入下载的 SQL 文件时,出现错误:
[ERROR in query 7] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<br />
<b>Fatal error</b>: Uncaught Error: Call to a member function has() on n' at line 4
这基本上意味着导出的文件中没有数据。如何正确下载 phpmyadmin 中 View 生成的数据?
最佳答案
View 不包含数据,因此当您下载/导出 View 而不是数据时,您可能会下载/导出相关代码..您想要下载数据..您应该创建一个临时表作为从 View 中选择
create my_temp_table
select * from my_view
然后下载/导出 my_temp_table
关于mysql - 如何导出数据 View ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39497979/