Jack,
Monday, May 06, 2002, 7:40:08 AM, you wrote:

J> Two Question :
J> 1.
J> I know that the 'LOAD DATA' command loads a bulk of data into a table, but
J> what happen if i only want to load the data into specifc fields on a table
J> instead of whole table.

J> eg.
J> Let say i had a file with 3 column of data, and i want to load these data
J> into a 'ABC' table's field 3 to 5 and leave field 1 & 2 as it was!

You can load data in certain table columns. Look at:
       http://www.mysql.com/doc/L/O/LOAD_DATA.html

J> 2.
J> I copied a file into server's root directory, and i was trying to load that
J> file's data to table which i had failed using the following command in
J> MYSQL:
J> "LOAD DATA infile 'c:\hkd_rate.csv' into table hkd_deposit1 fields
J> terminated by ',' "
J> It said couldn't find the file!
J> but if i put the file into the data directory of mysql, then it can find it!

Yeah, because MySQL doesn't have permissions on that dir.

J> So what should i do if i want mysql will able to find that file from root
J> directory?

You should change permissions on file and pathname dirs.

J> --
J> Thx a lot!
J> Jack




-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to