|
sql loader¸¦ ÀÌ¿ëÇÏ½Ã¸é µË´Ï´Ù..
mssqlÀÇ ³»¿ëÀ» textÈÀÏ·Î expÇÏ½Ã°í±¸¿©..
>sqlload scott/tiger control=sample.ctl data=sample.dat ÀÌ·¸°Ô ÇØÁÖ½Ã¸é µË´Ï´Ù...
ctlÈÀÏÀº ¸¸µå¼Å¾ßÇϴµ¥...°£´ÜÇÕ´Ï´Ù..
controlÈÀÏÀÇ ³»¿ëÀº ´ÙÀ½°ú °°½À´Ï´Ù..
--------------------------------
load data Á¦¾îÈÀÏÀÇ ¼±µÎ
infile sample.dat ¿ÜºÎÈÀÏÀ» ÁöÁ¤.
replace Å×ÀÌºí¿¡ µ¥ÀÌŸ ³Ö´Â ¹æ¹ý ÁöÁ¤
into table TABLE_NAME µ¥ÀÌŸ¸¦ ·ÎµåÇÏ´Â Å×À̺íÀ» ÁöÁ¤
field terminated by ',' µ¥ÀÌŸ ÇʵåÀÇ Á¾°á¹®ÀÚ ÁöÁ¤
(a integer external, Å×À̺íÀÇ ¿, ¿ÜºÎµ¥ÀÌŸ ÈÀÏÀÇ µ¥ÀÌŸ ÇüÀ» ÁöÁ¤ b char)
-----------------------
»ùÇ÷ΠÇϳª º¸¿©µå¸®¸é...
-----------------------------
load data
infile 'hotel_user.csv'
badfile 'fix_data.bad'
discardfile 'fix_data.dsc'into table hotel
fields terminated by ","
(
USER_ID,\t
USER_PASS,
USER_PASS_Q,\t
USER_PASS_A\t
)
-----------------------
ÀÌ·¸°Ô ÇÏ¸é µË´Ï´Ù...µ¥ÀÌŸ°¡ ¸¹´Ù¸é..´õ¿í ±ÇÇÏ°í ½ÍÀº ¹æ¹ýÀÔ´Ï´Ù..
|