StringBuilder 用法

 
using System.Text;
StringBuilder sb=new StringBulider("select pid,pname from table");

sb.append(" where psex=男");

Page.ClientScript,RegisterClientScriptBolck(GetType(),"test","alert('"+sb.ToString()+"')",true);

你可能感兴趣的:(StringBuilder)