English 中文(简体)
能否利用我的假设放弃和进口看法?
原标题:Is it possible to dump and import views using mysqldump?
  • 时间:2012-04-12 02:12:44
  •  标签:
  • view
  • mysql

当我使用我的原.和再进口垃圾堆时,这些看法就成了空表。

这两种情况都是可能的。

a) 丢弃,然后进口看法,而不把它们变成空表?

或者,如果不可能,

b) 排除了带有野心的神话中的观点,如

mysqldump mydb  --ignore-table=*views > mydb.sql

如果所有意见都附有“意见”的说明,则排除所有意见? (这一部分以前曾被问过,但至今仍未回答:

最佳回答

使用<代码>-compact -add-drop-table,然后人工调整倾销档案。

详情:

Produce more compact output. This option enables the --skip-add-drop-table, --skip-add-locks, --skip-comments, --skip-disable-keys, and --skip-set-charset options.
Note:

在MySQL.1.21之前,如果数据库库中存有观点,这一选择并不有效。 意见的娱乐需要设立和删除临时表格,这一选择抑制了这些临时表格的删除。 作为一种工作,使用——与——替代选择相吻合,然后人工调整倾销档案。

问题回答

暂无回答




相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签