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