Rol*_*man 56
SQLite没有存储的函数/存储过程语言.所以CREATE FUNCTION不起作用.你可以做的是从ac库到SQL函数(用户定义的函数)的映射函数.为此,请使用SQLite的C API(请参阅:http://www.sqlite.org/c3ref/create_function.html)
如果您没有使用C API,您的包装器API可能会定义允许您访问此功能的内容,例如,请参阅:
sqlite_create_function()(http://www.php.net/manual/en/function.sqlite-create-function.php)sqlite3.create_function()(http://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.create_function)$dbh->func(_$name,_$argc,_$func_ref,_"create_function")(https://metacpan.org/pod/DBD::SQLite#dbh-sqlite_create_function-name-argc-code_ref)这可能对许多人有用:例如,在SQLiteStudio 中,可以通过 sql 内置插件从界面轻松定义新函数和排序规则。
https://github.com/pawelsalawa/sqlitestudio/wiki/Official_plugins#sql-built-in
通过功能编辑器。
| 归档时间: |
|
| 查看次数: |
69463 次 |
| 最近记录: |