English 中文(简体)
• 在声明边界上放置大型q子?
原标题:Splitting a large sql file on statement boundaries?

我需要从一个Oracle数据库向我的SQL数据库输入一个大的Q表。 I “dumped”Oracle table using RazorSQL so that I now have a large (2.5 GB) .sql file, with many INSERT.

这份档案太大,我想将其分开,以便我用chu子进口。 分离这种档案的方法是什么?

  • 使用<代码>split的指挥,除某些示意图含有新的线性外,还将发挥作用,以便<代码>split<>/code>分为几部分的中度说明。

  • a Perl quickie using a regexp to split on "; " (end of statement) would work, but there is still the remote possibility that such a character sequence could be found in the data.

当然,我总是会写一个教区,以理解大话。 我想知道,是否有什么东西可以mar?

还提出了类似的问题。 指称:

How do I split the output from mysqldump into smaller files?

但是,唯一的分离解决办法是就一些Windows软件提出建议。 视窗不是我的选择。 我跑不了,即MacOS X。

为了提供某种背景,我想这样做的原因是,我在将档案输入我的SQL时有错误。 仅仅因为时间耗费而使错误变得难以理解,因为向大多数文本编辑开放如此庞大的编辑文本档案是非微不足道的。 我的一些工具甚至没有报告案卷中的错误的位置,这强烈表明,对错误采取分数的分门别类的做法。 这样做是有益的。

感谢任何想法。

问题回答

不是回答你的问题,而是解决你的问题:

Install Navicat (MySQL GUI)。 它拥有一种 or子和大体;Mesql移民工具,可以帮助你,因为很可能,你会因子关系而出现错误。 将一种方言转化为另一种方言是一项艰巨的任务。





相关问题
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 ...

难以执行 REGEXP_SUBSTR

I m 查询Oracle 10g。 我有两张表格(样本数据见下文)。 i m 试图提取一些领域

SQL Query Shortcuts

What are some cool SQL shorthands that you know of? For example, something I learned today is you can specify to group by an index: SELECT col1, col2 FROM table GROUP BY 2 This will group by col2

PHP array callback functions for cleaning output

I have an array of output from a database. I am wondering what the cleanest way to filter the values is example array Array ( [0] => Array ( [title] => title 1 ...

OracleParameter and DBNull.Value

we have a table in an Oracle Database which contains a column with the type Char(3 Byte). Now we use a parameterized sql to select some rows with a DBNull.Value and it doesn t work: OracleCommand ...

Running numbers in SQL

I have a SQL-statement like this: SELECT name FROM users WHERE deleted = 0; How can i create a result set with a running number in the first row? So the result would look like this: 1 Name_1 2 ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签