string sql = "select * from {0}";
System.Text.StringBuilder where = new System.Text.StringBuilder();
where.Append(string.Format("{0} where 1=1", "db.user"));
sql = string.Format(sql, where);
转载于:https://www.cnblogs.com/LTEF/p/10168635.html
string sql = "select * from {0}";
System.Text.StringBuilder where = new System.Text.StringBuilder();
where.Append(string.Format("{0} where 1=1", "db.user"));
sql = string.Format(sql, where);
转载于:https://www.cnblogs.com/LTEF/p/10168635.html