select查询语句里where 条件能用等于一个变量吗?
例如:Stringuser_mima=request.getParameter("user_mima");selectmimafromuserwherename="use...
例如:
String user_mima = request.getParameter("user_mima");
select mima from user where name="user_mima";
例子写错了 应该是这样:
String user_name = request.getParameter("user_name");
select mima from user where name="user_name"; 展开
String user_mima = request.getParameter("user_mima");
select mima from user where name="user_mima";
例子写错了 应该是这样:
String user_name = request.getParameter("user_name");
select mima from user where name="user_name"; 展开
2个回答
2015-05-21
展开全部
当然可以。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询