Web application in the design of fuzzy query about class, what should write SQL statements, For example, I according to the title or the author or ISBN different attributes, such as query book,
CodePudding user response:
Sorry I'm coming water points
CodePudding user response:
Finally is joining together the SQL statement, if the field is the text "... WHERE xx LIKE '% % "+ val +"' "+" OR XXXX LIKE '% "+ val +" %' " Submitted to variable val to do SQL injection treatment, Complex point, according to different field types have different SQL statements, do a query analyzer, can define a set of syntax, deal with and the or, different field types do their respective query and numerical test,