这个查询语句怎么写啊? String strSql = "select * from article where id = "+ID; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 String strSql = "select * from article where id = "+ID; String strSql = "select * from article where id = "+ID+"";或String strSql = "select * from article where id = "+ID; 字符串才能用''int 不能用这个'' try{ id_tmp = Integer.parseInt(id);}catch(Exception e){ id_tmp = 0;}String strSql = "select * from article where id = "+id_tmp; String strSql = "select * from article where id = "+ID; String strSql = "select * from article where id like '"+ID+"'"; String ID = (String) request.getParameter("id"); 常识一下String strSql = "select * from article where id = "+ID+";要多尝试,多积累! String strSql = "select * from article where id = "+String.valueOf(ID); 请问hibernate什么时候可以不写get和set方法啊 java培训哪里好点(限成都) 使用ireprot+jasper做web报表 动态生成报表表头 web应用中,applet目前应用的不多不多,为什么? 怎样在jsp中引用servlet里定义的参数? 隐藏select 边框代码 一个有关框架的问题? 帮忙看一下这个问题 如何解决从表单写到数据库是中文是乱码的问题! springmvc excel表格数据导入数据库怎么做? 请大家帮忙,这个问题怎么解决? 关于银行和网站之间的联系
或
String strSql = "select * from article where id = "+ID;
int 不能用这个''
{
id_tmp = Integer.parseInt(id);
}
catch(Exception e)
{
id_tmp = 0;
}
String strSql = "select * from article where id = "+id_tmp;
要多尝试,多积累!