List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:May 23 2001 12:36am
Subject:Re[2]: Help! (LONGTEXT)
View as plain text  
At 3:35 AM +0300 5/23/01, Olexandr Vynnychenko wrote:
>Hello Paul,
>
>Wednesday, May 23, 2001, 3:24:29 AM, you wrote:
>
>PD> At 3:22 AM +0300 5/23/01, Olexandr Vynnychenko wrote:
>>>Hello mysql,
>>>
>>>Can anybody tell me what should I do? I use LONGTEXT column in my
>>>table to store data files (html, for example). But I see that I 
>>>cannot simply
>>>INSERT INTO table SET longtext_column=whole_file. But I must do it 
>>>today. But
>>>how???
>
>PD> The LOAD_FILE() function might help you if you have the files on the
>PD> server host and you have the FILE privilege.
>
>>>
>>>Thanks beforehand.
>>>
>>>--
>>>Best regards,
>>>   Olexandr Vynnychenko 
>>>mailto:supaboy@stripped
>
>
>
>But if the file is local?

Then you're going to have to write a script and construct the
INSERT statement with the contents of the file properly encoded
in the query string.



>
>--
>Best regards,
>  Olexandr                            mailto:supaboy@stripped


-- 
Paul DuBois, paul@stripped
Thread
Help! (LONGTEXT)Olexandr Vynnychenko23 May
  • Re: Help! (LONGTEXT)Paul DuBois23 May
Re[2]: Help! (LONGTEXT)Olexandr Vynnychenko23 May
  • Re[2]: Help! (LONGTEXT)Paul DuBois23 May