diff --git a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs index ff1b03818..6dd9d414f 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs @@ -261,7 +261,7 @@ namespace SqlSugar { get { - return "ALTER TABLE {0} ALTER COLUMN {1} SET DEFAULT '{2}'"; + return "ALTER TABLE `{0}` ALTER COLUMN `{1}` SET DEFAULT '{2}'"; } } protected override string IsAnyIndexSql