sqlite
关于sqlite在windows、Linux系统的差异
说明
主要的sql
select * from table where true
select * from table where 1=1
上述两者sql在windows系统下,php7都能正常运行,但是到了linux下,却执行出错,我最开始以为是数据库表或者字段大小写的问题,却发现了where 的两者差异。
另外,php开启错误时,如下:
ini_set('display_errors', 1);
error_reporting(E_ALL);