Title: Create MySql database function from plugin
Last modified: August 19, 2016

---

# Create MySql database function from plugin

 *  [Larcha](https://wordpress.org/support/users/larcha/)
 * (@larcha)
 * [17 years ago](https://wordpress.org/support/topic/create-mysql-database-function-from-plugin/)
 * Hi
 * I need to create a MySql database function for my plugin but it seems that I 
   can not do this with dbDelta() or query(). Is it possible to do theis from within
   a plugin installation?
 * I need the database function to generate member numbers from a sequense table
   that I have created.
 * /Stefan

Viewing 1 replies (of 1 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years ago](https://wordpress.org/support/topic/create-mysql-database-function-from-plugin/#post-1082613)
 * This should point you in the right direction:
    [Creating_Tables_with_Plugins](http://codex.wordpress.org/Creating_Tables_with_Plugins)

Viewing 1 replies (of 1 total)

The topic ‘Create MySql database function from plugin’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/create-mysql-database-function-from-plugin/#post-1082613)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
