Update MySql

This commit is contained in:
sunkaixuan 2017-06-25 06:58:36 +08:00
parent 87204a6f6c
commit 2e138209d8
2 changed files with 3 additions and 3 deletions

View File

@ -35,11 +35,11 @@ namespace OrmTest
// new SqlSugarPerformance(100).Select();
/***Demo***/
//OrmTest.Demo.Query.Init();
// OrmTest.Demo.Query.Init();
//OrmTest.Demo.Insert.Init();
//OrmTest.Demo.Delete.Init();
//OrmTest.Demo.Update.Init();
OrmTest.Demo.DbFirst.Init();
// OrmTest.Demo.DbFirst.Init();
//OrmTest.Demo.JoinSql.Init();
//OrmTest.Demo.Filter.Init();
//OrmTest.Demo.ComplexModel.Init();

View File

@ -26,7 +26,7 @@ namespace SqlSugar
CASE WHEN is_nullable = 'YES'
THEN true ELSE false END AS `IsNullable`
FROM
Information_schema.columns where TABLE_NAME='{0}' ORDER BY TABLE_NAME";
Information_schema.columns where TABLE_NAME='{0}' and TABLE_SCHEMA=(select database()) ORDER BY TABLE_NAME";
return sql;
}
}