[Á°][¼¡][ÈÖ¹æ½ç°ìÍ÷][¥¹¥ì¥Ã¥É°ìÍ÷]

mysql:7609

From: "Takeda" <"Takeda" <hide-yan@xxxxxxxxxx>>
Date: Tue, 29 Apr 2003 21:58:04 +0900
Subject: [mysql 07609] Re: load ʸ¤Ç¤Î load ·ï¿ô¤ÎÉÔ°ìÃ×

ÉðÅĤǤ¹¡£
¤È¤ß¤¿ÍÍ
Áᮤ´²óÅú¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
¥¢¥É¥Ð¥¤¥¹Äº¤­¤Þ¤·¤¿¤è¤¦¤ËCSV¥Õ¥¡¥¤¥ë¤È¥í¡¼¥É·ë²Ì¤òÈæ¤Ù¤Æ¤ß¤Þ¤·¤¿¡£

> > ¤Á¤ç¤¦¤ÉȾʬ¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦¾õ¶·¤Ç¤¹¤¬¡¢¸¶°ø¤¬Ê¬¤«¤ê¤Þ¤»¤ó¡£
>
> MySQL ¤Ë¥í¡¼¥É¤µ¤ì¤¿¥ì¥³¡¼¥É¤È¡¢¥í¡¼¥É¤µ¤ì¤Ê¤«¤Ã¤¿¥ì¥³¡¼¥É¤Ë²¿¤«°ã¤¤¤¬
> ¤Ê¤¤¤«Èæ¤Ù¤Æ¤ß¤Æ¤Ï¤É¤¦¤Ç¤·¤ç¤¦¤«¡£
>

­¡16630¥ì¥³¡¼¥É¤ÎCSV¥Õ¥¡¥¤¥ë¤Îload¤ò¼Â¹Ô¤·¤¿ºÝ¤Î·ë²Ì
load data infile 'file.csv'
into table table
fields terminated by ','
enclosed by '"'
ignore 1 lines;
Query OK, 8315 rows affected (7.69 sec)
Records: 8315  Deleted: 0  Skipped: 0  Warnings: 8315

­¢select column_last from table where id='E001';¡¡¤Î¼Â¹Ô·ë²Ì
+---------------------------+
| column_last                  |
+---------------------------+
| ¤¢¤¤¤¦"
"E001 |
+---------------------------+
1 row in set (1.49 sec)

¡ã£Ã£Ó£Ö¥Õ¥¡¥¤¥ë¡ä
£±¹ÔÌܤΣ±ÎóÌÜ(id)¡á"E001",¡Á¡Á,£±¹ÔÌܤκǽªÎó(column_last)¡á"¤¢¤¤¤¦"
£²¹ÔÌܤÎ1ÎóÌÜ(id)¡á"E002",¡Á¡Á

¡ü¿ä¬
¤³¤ÎCSV¥Õ¥¡¥¤¥ë¤ÎºÇ½ªÎ󤬼¤ϥ«¥ó¥Þ¤Ç¶èÀÚ¤é¤ì¤Æ¤¤¤Ê¤¤¤¿¤á¤Ë£²¹ÔÌܤÎ
£±ÎóÌܤΥ«¥ó¥Þ¤Þ¤Ç¤ò£±¹Ô¤Èǧ¼±¤·¤Æload¤·¡¢£Ã£Ó£Ö£²¹Ô¤ò£±¹Ô¤È¤·¤Æ¼è¤ê¹þ¤ó¤Ç¤·
¤Þ¤¤¡¢
·ë²Ì¤È¤·¤Æload·ï¿ô¤¬¤Á¤ç¤¦¤ÉȾʬ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤è¤¦¤Êµ¤¤¬¤·¤Æ¤¤¤Þ¤¹¡£

­¡¤ÇWarnings: 8315¤È¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ï¡¢CSV£²¹ÔÌܤΣ²ÎóÌܰʹߤ¬Àµ¤·¤¯¼è¤ê¹þ¤á¤Æ
¤¤¤Ê¤¤¤¿¤á¤ËÁ´¥ì¥³¡¼¥É¤ËWarning¤¬È¯À¸¤·¤¿¤È¤¤¤¦¤³¤È¤ÈÍý²ò¤·¤Æ¤è¤¤¤Ç¤·¤ç¤¦
¤«¡£

¤³¤³¤Þ¤Ç¤Ï¤Ê¤ó¤È¤Ê¤¯Íý²ò¤Ç¤­¤Þ¤·¤¿¤¬¡¢·ë¶É¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤«¤¬Ê¬¤«¤ê¤Þ¤»¤ó¡£
lines terminated by ¡¡¤òÄɲ乤ì¤Ð¤è¤¤¤è¤¦¤Êµ¤¤â¤·¤Þ¤¹¤¬¡¢¹Ô½ªÃ¼Ê¸»ú¤Ï
²¿¤Ë¤¹¤ë¤Î¤¬Å¬Åö¤Ç¤·¤ç¤¦¤«¡£
¥¨¥¯¥»¥ë¤ÇÉáÄ̤˳«¤±¤ë¥Õ¥¡¥¤¥ë¤Ê¤Î¤ÇÆÃÊ̤ʤâ¤Î¤Ç¤Ï¤Ê¤¤¤È»×¤Ã¤Æ
¤¤¤Þ¤·¤¿¤¬¡¢¥Õ¥¡¥¤¥ë¤Ë¤è¤Ã¤Æ°Û¤Ê¤ë¤â¤Î¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£

¤Ê¤«¤Ê¤«»×¤¦¤è¤¦¤Ë¤¤¤«¤Ê¤¤¤â¤Î¤Ç¤¹¤Í¡£¡£¡£

°Ê¾å¡¢¤É¤¦¤¾¤è¤í¤·¤¯¤ª´ê¤¤Ãפ·¤Þ¤¹¡£


[Á°][¼¡][ÈÖ¹æ½ç°ìÍ÷][¥¹¥ì¥Ã¥É°ìÍ÷]

      7607 2003-04-29 12:27 ["Takeda" <hide-yan@x] load ʸ¤Ç¤Î load ·ï¿ô¤ÎÉÔ°ìÃ×           
      7608 2003-04-29 19:17 ¨²[¤È¤ß¤¿¤Þ¤µ¤Ò¤í <tomm]                                       
->    7609 2003-04-29 21:58 ¨­¨±["Takeda" <hide-yan@x]                                     
      7610 2003-04-29 22:10 ¨­¡¡¨²["Takeda" <hide-yan@x]                                   
      7615 2003-04-30 00:13 ¨­¡¡¨±[¤È¤ß¤¿¤Þ¤µ¤Ò¤í <tomm]                                   
      7617 2003-04-30 10:21 ¨±["MORII,Tadashige" <m]                                       
      7626 2003-04-30 23:32 ¡¡¨±["Takeda" <hide-yan@x]