我正在尝试以下不起作用:
update table_name set text_column= load_file('C:\temp\texttoinset.txt') where primary_key=5;
这里的 text_column 是 TEXT 类型。
这给出了:
Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the slave. Rows matched: 1 Changed: 0 Warnings: 1
从 PHP 在我的 SQL 中插入日志文件内容的正确方法是什么?