修改字段重复的bug
This commit is contained in:
parent
d0d7d0bc7f
commit
3c2904e860
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<SystemConfig>
|
||||
<config name ="DataBaseType" ivalue="MYSQL" remark ="系统数据库类型"> </config>
|
||||
<config name ="ConnString" ivalue ="server=10.40.18.18;port=3306;user=root;password=root_password; database=mesdb_nca;" remark ="数据库连接字符串"> </config>
|
||||
<config name ="ConnString" ivalue ="server=10.40.18.18;port=3306;user=hbl;password=hbl_password; database=mesdb_nca;" remark ="数据库连接字符串"> </config>
|
||||
<config name ="SystemParameter_tbname" ivalue="SYS_SystemParameter" remark ="系统初始参数表"> </config>
|
||||
</SystemConfig>
|
||||
|
@ -92,10 +92,12 @@ namespace GenerateClass.Util
|
||||
AND c.COLUMN_NAME = k.COLUMN_NAME
|
||||
WHERE
|
||||
c.TABLE_NAME = '{0}'
|
||||
AND
|
||||
c.TABLE_SCHEMA = '{1}'
|
||||
ORDER BY
|
||||
c.ORDINAL_POSITION;";
|
||||
//string str = $"SELECT COLUMN_NAME AS Name, COLUMN_TYPE AS Type,COLUMN_COMMENT AS COMMENT FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '{tabname}' ORDER BY ORDINAL_POSITION;";
|
||||
var dt = DbHelperMySQL.Query(String.Format(sql, tabname));
|
||||
var dt = DbHelperMySQL.Query(String.Format(sql, tabname, DbHelperMySQL.DbName));
|
||||
return dt;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user