<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.sqle.ru/index.php?action=history&amp;feed=atom&amp;title=SQL%2FMySQL%2FBackup_Load%2FLoad_Data_Into_Table</id>
		<title>SQL/MySQL/Backup Load/Load Data Into Table - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.sqle.ru/index.php?action=history&amp;feed=atom&amp;title=SQL%2FMySQL%2FBackup_Load%2FLoad_Data_Into_Table"/>
		<link rel="alternate" type="text/html" href="http://www.sqle.ru/index.php?title=SQL/MySQL/Backup_Load/Load_Data_Into_Table&amp;action=history"/>
		<updated>2026-05-24T20:14:41Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.sqle.ru/index.php?title=SQL/MySQL/Backup_Load/Load_Data_Into_Table&amp;diff=5052&amp;oldid=prev</id>
		<title> в 13:46, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.sqle.ru/index.php?title=SQL/MySQL/Backup_Load/Load_Data_Into_Table&amp;diff=5052&amp;oldid=prev"/>
				<updated>2010-05-26T13:46:00Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 13:46, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.sqle.ru/index.php?title=SQL/MySQL/Backup_Load/Load_Data_Into_Table&amp;diff=5053&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.sqle.ru/index.php?title=SQL/MySQL/Backup_Load/Load_Data_Into_Table&amp;diff=5053&amp;oldid=prev"/>
				<updated>2010-05-26T10:15:50Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Load data in txt file into database==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Drop table Bird;&lt;br /&gt;
CREATE TABLE Bird (&lt;br /&gt;
    name VARCHAR(20), &lt;br /&gt;
    owner VARCHAR(20),&lt;br /&gt;
    species VARCHAR(20), &lt;br /&gt;
    sex CHAR(1), &lt;br /&gt;
    birth DATE, &lt;br /&gt;
    death DATE&lt;br /&gt;
);&lt;br /&gt;
  &lt;br /&gt;
INSERT INTO  Bird VALUES (&amp;quot;BlueBird&amp;quot;,&amp;quot;Joe&amp;quot;,&amp;quot;Car&amp;quot;,&amp;quot;f&amp;quot;,&amp;quot;1999-03-30&amp;quot;,NULL);&lt;br /&gt;
  &lt;br /&gt;
/* Suppose that your Bird records can be described as shown here. &lt;br /&gt;
(Observe that MySQL expects dates in &amp;quot;YYYY-MM-DD&amp;quot; format; &lt;br /&gt;
this may be different from what you are used to.&lt;br /&gt;
*/&lt;br /&gt;
name    owner   species  sex   birth       death&lt;br /&gt;
Blue   Joe   cat      f      1993-02-04    &lt;br /&gt;
Yellow  Yin     cat      m      1994-03-17    &lt;br /&gt;
Red     Richard dog      f      1989-05-13    &lt;br /&gt;
    &lt;br /&gt;
/*&lt;br /&gt;
Note that if you created the file on Windows with an editor that uses &lt;br /&gt;
\r\n as a line terminator, you should use:&lt;br /&gt;
*/&lt;br /&gt;
LOAD DATA LOCAL INFILE &amp;quot;/path/Bird.txt&amp;quot; INTO TABLE Bird&lt;br /&gt;
LINES TERMINATED BY &amp;quot;\r\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==load text data into table==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
LOAD DATA INFILE &amp;quot;/textFileName.txt&amp;quot;&lt;br /&gt;
INTO TABLE quackers&lt;br /&gt;
FIELDS TERMINATED BY &amp;quot;;&amp;quot;&lt;br /&gt;
LINES TERMINATED BY &amp;quot;\r\n&amp;quot;&lt;br /&gt;
IGNORE 1 LINES;&lt;br /&gt;
/*&lt;br /&gt;
      Colons, by using &amp;quot;:&amp;quot;&lt;br /&gt;
      Semicolons, by using &amp;quot;;&amp;quot;&lt;br /&gt;
      Spaces, by using &amp;quot; &amp;quot;&lt;br /&gt;
*/&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>