字符串格式化

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);sql

相關文章
相關標籤/搜索