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

   Á¶È¸ 6392   Ãßõ 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 3966/5679
2015-12   1478981   ¹é¸Þ°¡
2014-05   4942167   Á¤ÀºÁØ1
2014-01   6390   chis
2005-03   6390   ÀÌÈ£¿ø
2016-10   6390   ȲÁø¿ì
2016-09   6390   ´Þ¸±±î
2004-12   6390   ±è¼ºÃ¶
2009-10   6390   ¼Õ¼®¿ì
2013-12   6390   ±èȲÁß
2009-08   6390   Ǫ¸ªÀÌ
2005-03   6390   À̱¤Áø
2016-02   6391   yeondoo
2022-01   6391   ¿¥ºê¸®¿À
2005-09   6391   ±è¿µ±¤
2014-12   6391   À嵿°Ç2014
2018-05   6391   À̼±È£
2005-03   6391   ±èÁöȯ
2005-02   6391   ±è¿ëÁÖ
2005-02   6391   ½ÅÀǽÄ
2015-02   6391   ±è°Ç¿ì
2006-02   6391   ¹Ú±ÔÇÏ
2015-04   6391   BoKi