Ⅰ sql 数据库查询怎样设置参数
java中是来
String s="R1011";
(Statement).executeQuery("SELECT * FROM (数据源表)
WHERE (列名)=‘"+s+"’");
------------------------------------------------
Sql里是
declare @s varchar
select * from table where column=@s
------------------------------------------------
O(∩_∩)O