MySQL Tutorial/String Functions/LOAD FILE — различия между версиями

Материал из SQL эксперт
Перейти к: навигация, поиск
м (1 версия)
 
м (1 версия)
 
(нет различий)

Текущая версия на 12:49, 26 мая 2010

LOAD_FILE(file_name): Reads the file and returns the file contents as a string

The file size must be less than max_allowed_packet bytes.

If the file does not exist or cannot be read, the function returns NULL.



   <source lang="sql">

UPDATE myTable SET text_col=LOAD_FILE("/tmp/picture");</source>