|
mysqli::set_local_infile_handlermysqli_set_local_infile_handlerSet callback function for LOAD DATA LOCAL INFILE command BeschreibungObjektorientierter Stil
bool mysqli::set_local_infile_handler
( mysqli
$link
, callable $read_func
)Prozeduraler Stil
bool mysqli_set_local_infile_handler
( mysqli
$link
, callable $read_func
)Set callback function for LOAD DATA LOCAL INFILE command The callbacks task is to read input from the file specified in the LOAD DATA LOCAL INFILE and to reformat it into the format understood by LOAD DATA INFILE. The returned data needs to match the format specified in the LOAD DATA Parameter-Liste
The callback function should return the number of characters stored
in the Rückgabewerte
Gibt bei Erfolg BeispieleBeispiel #1 mysqli::set_local_infile_handler example Objektorientierter Stil
<?phpProzeduraler Stil
<?phpDie obigen Bespiele erzeugen folgende Ausgabe: Input: 23,foo 42,bar Output: 23,FOO 42,BAR Siehe auch
|