日期:2014-05-17 浏览次数:20751 次
sql = "select id,title,author,content from note where title like ? or author like ? or content like ? " ;
if(keyword!=null){
System.out.println(keyword) ;
String r = "'%" + keyword + "%'" ;
System.out.println("'%" + keyword + "%'") ;
pstmt.setString(1,r) ;
pstmt.setString(2,r) ;
pstmt.setString(3,r) ;
}