ÅؽºÆ®¸¦ DB¿¡ ³ÖÀ»¶§ Áú¹® µå¸³´Ï´Ù.

   Á¶È¸ 6388   Ãßõ 0    

mysql -u root -p passwd DB_name -e "delete from table_name;

load data infile 'a.txt' into table table_name fields terminated by '\n' lines terminated by '\r\n' (Çʵå1,Çʵå2,Çʵå3);

load data infile 'b.txt' into table table_name fields terminated by '\n' lines terminated by '\r\n' (Çʵå4,Çʵå5,Çʵå6);

load data infile 'c.txt' into table table_name fields terminated by '\n' lines terminated by '\r\n' (Çʵå7,Çʵå8,Çʵå9);

load data infile 'd.txt' into table table_name fields terminated by '\n' lines terminated by '\r\n' (Çʵå10,Çʵå11,Çʵå12);

load data infile 'e.txt' into table table_name fields terminated by '\n\n' lines terminated by '\r' (Çʵå13,Çʵå14,Çʵå15); "



Å×À̺íÀº Çʵå1,Çʵå2Çʵå3......Çʵå14,Çʵå15 ·Î ±¸¼ºµÇ¾îÀÖ½À´Ï´Ù.

À§Àǹæ¹ýÀ¸·Î Çϴϱñ ÇàÀÌ ´Ù ³ª´²Áö´øµ¥...textÆÄÀÏÀº a,b,c,d,e ´Ù¼¸°³Àε¥ text¸¦ DB·Î ³ÖÀ»¶§ ¿©·¯ÆÄÀÏÀ» ÇÑÅ×ÀÌºí¿¡ ³ÖÀ¸¸é¼­ ÇÑÇà¿¡ ÂÒ¾Ç ³Ö´Â ¹æ¹ýÀÌ ¾øÀ»±î¿ä?
서버 모니터링, 라즈베리파이에 관심이 많습니다.
http://www.sproc.co.kr
http://rpi.sproc.co.kr
http://noaa.sproc.co.kr
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
±è»óÁø 2010-02
À½....Àú¶ó¸é, ±×³É 5°³ ÆÄÀÏÀ» Àӽà Å×À̺í·Î °¢°¢ ³ÖÀº´ÙÀ½¿¡
5°³ Å×À̺íÀ» Á¶ÀÎÇؼ­ ÇϳªÀÇ Å×À̺í·Î ¸¸µé´ø ¾Æ´Ô view¸¦ ¸¸µå´Â ¹æ¹ý´Â ¾î¶³·±Áö¿ä
´Ù¸¸, ¾çÀÌ ¸¹´Ù¸é joinÇؼ­ insertÇϴ°͵µ ºÎÇÏ°¡ Å©±äÇÏÁÒ ^^
¶ÇÇÑ, °¢°¢ 5°³ Å×À̺íÀ» joinÇϱâÀ§ÇÑ Å°°ªµéÀº º°µµ·Î °¡Áö°íÀÖ¾î¾ß °ÚÁÒ

¾Æ´Ï¸é, editer¿¡¼­ Çϳª·Î ÇÕÄ¡´Â ¹æ¹ýµµ ÀÖ±äÇѵ¥...(unixÀÇ ½©·Îµµ °¡´ÉÇÒ·±Áö´Â ¸ð¸£°ÚÁö¸¸) ^^


QnA
Á¦¸ñPage 4023/5678
2014-05   4941099   Á¤ÀºÁØ1
2015-12   1477924   ¹é¸Þ°¡
2005-05   6509   Çѵ¿ÈÆ
2009-09   6509   Yellow
2005-03   6509   À±È£¿ë
2008-01   6509   ±è°Ç¿ì
2017-01   6509   YongYeon
2013-07   6509   ¹Ú¹ÎÇõA
2014-02   6509   º´¸ÀÆù
2004-12   6509   ¹ÎºÀ±â
2015-02   6509   º´¸ÀÆù
2005-04   6509   ÀÌÀå´ö
2011-05   6509   ¹èÁÖ±Ô
2015-08   6509   À©µµ¿ì10
2013-05   6510   ±èµ¿½Ä
2011-08   6510   ÀÌÇö¼®1
2010-02   6510   ¹æoÈ¿o¹®
2012-04   6510   ÀÌ¿øÀçK
2005-02   6510   Á¤ÀçÀ±
2012-05   6510   ¸¶ÀÌÄÚÄÚ
2008-12   6510   ±è´ë¼º
2008-05   6510   ¿À¼¼À±