On 05/10/2013 6:01 AM, Clemens Ladisch wrote:
Bao Niu wrote:
SELECT * FROM myTable WHERE MyDate > MyModule.ChineseDate("兔年八月十五")
You cannot use Python function directly in SQL.
... but you can register it with sqlite3 easily enough and use it from SQL afterward:
http://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.create_function

Ryan

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to