开发者

How to create a MySql user-defined function in a WordPress plugin installation?

I have written a script that creates a user-defined func开发者_StackOverflowtion (UDF) for the MySql database.

I need this UDF for a plugin that I am writing in WordPress.

Is there any way to add this UDF to the database from within the regular WordPress plugin installation scripts? (such as the "dbDelta" function for installing database tables).

Thanks for your help :-)


Is there any way to add this UDF to the database from within the regular WordPress plugin installation scripts? (such as the "dbDelta" function for installing database tables).

Judging from the documentation, the dbDelta function takes arbitrary SQL. As long as whatever underlying mechanism that is being used allows UDFs to be created, then you should not have an issue simply creating it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜