1.procedure TForm1.btn1Click(Sender: TObject); var s: String; begin S := 'select * from TMarketInfo where NO='''+'1'''; ShowMessage(s); end; 结果显示:select * from TMarketInfo where NO='1' 2.procedure TForm1.btn1Click(Sender: TObject); var s…
加命名空间(可能需要在项目中先加引用,再在类中如下引用) using System.Web.SessionState; HttpContext.Current.Session["TotalPage"].ToString(); HttpContext.Current.Request.QueryString["cid"].ToString();…
@Configuration//配置文件位置@PropertySource("classpath:city.properties")//前缀@ConfigurationProperties(prefix = "city")public class CityProperties { private Map<String,Integer> map = new HashMap<>(); public Map<String, Integer&g…