Mysql官方文档中争对安全添加列的处理方法。Mysql Add a Column to a table if not exists
来源:互联网
This stored procedure provides the functionality for "add column if not exists". To use the script call it with the name of the database, name of the table, name of the field and the field definition to use if the field is to be created. For example:This stored procedure provides the functionality f