php - 无法将变量 'sql_mode' 设置为“REPLACE”的值

标签 php mysql sql codeigniter

我不知道为什么,但突然出现以下错误。

到目前为止它工作正常但是今天它会产生以下错误 enter image description here

当我测试到本地服务器时它工作正常但是当我上传到 000webhost 服务器时它会产生错误

Variable 'sql_mode' can't be set to the value of 'REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( @@sql_mode' SELECT vValue FROM configurations WHERE eStatus = 'Active' AND vName = > 'PAGE_DATA_LIMIT' ORDER BY iSettingId DESC

Filename: core/MY_Model.php 中,所有代码都工作正常,Line Number: 94 上没有错误显示

最佳答案

打开文件config/database.php 并将 value 的变量 stricton 更改为“TRUE”

'stricton' => TRUE,

关于php - 无法将变量 'sql_mode' 设置为“REPLACE”的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57375512/

相关文章:

php - Composer 更新和 Composer 安装有什么区别?

mysql - 需要帮助在一个 Select 语句中对两列进行排序

javascript - Sails.js 对关联值的查询

php - Codeigniter - 一起使用两个 like 和 where

python - pymssql执行许多插入值错误

php - 将视频上传到特定的播放列表

PHP -> 正则表达式 |密码验证不起作用

php - 使用 php 和 mysql 插入 html 表数据

sql - 简单 SQL 查询中 "NOT IN"的问题

php - 动态搜索 php ajax jquery