Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SQLite:如何模拟位置函数?_Sqlite_Position_Locate - Fatal编程技术网

SQLite:如何模拟位置函数?

SQLite:如何模拟位置函数?,sqlite,position,locate,Sqlite,Position,Locate,有没有办法在SQLite中模拟不受支持的函数,如POSITION、LOCATE、INSTR?根据,有INSTR(在我安装的Linux 3.7.15.2上确实有)。您使用的是哪个版本?我使用PDO中集成的SQLite3,PHPV5.3.5返回:“没有这样的函数:INSTR”;是否有在sqlite中注册(php,用户定义)函数的接口?(对于tclsqlite3,有)。通过这种方式,您可以添加自己的INSTR实现,以便在sqlite中使用。是的,在哪里可以找到INSTR函数实现的示例?

有没有办法在SQLite中模拟不受支持的函数,如POSITION、LOCATE、INSTR?

根据,有
INSTR
(在我安装的Linux 3.7.15.2上确实有)。您使用的是哪个版本?我使用PDO中集成的SQLite3,PHPV5.3.5返回:“没有这样的函数:INSTR”;是否有在sqlite中注册(php,用户定义)函数的接口?(对于tclsqlite3,有)。通过这种方式,您可以添加自己的INSTR实现,以便在sqlite中使用。是的,在哪里可以找到INSTR函数实现的示例?