Possible duplicate:Can't use a Like query in a prepared JDBC statement?
Is it possible to prepare an SQL statement as follows:
SELECT COUNT(?) FROM TABLE WHERE COLUMUN_1 LIKE '%?%'
and in Java,
preparedStmt.setString(1, "COLUMN_2"); preparedStmt.setString(2, "FORD");
Nope. Typically, you can only use placeholders for values, not identifiers, such as table and column names.
Source: https://habr.com/ru/post/1446339/More articles:Automating the user interface outside of your own application? - iosTabs, actions and nested fragments - androidGetting subViews frames in a storyboard - iosWhat am I doing wrong with my rakefile? - ruby | fooobar.comIs there a way to force a single row update using SlickGrid? - slickgridHow to get subviews frames at the beginning of the initialization process - iososmdroid MapView IconOverlay - is there a way to resize the icon? - androidMultiple Iteration Performance - performancePoll email using async waiting for C # - c #https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1446344/is-it-against-java-conventions-to-name-an-object-the-same-as-the-class-name-sans-the-capital&usg=ALkJrhguyIRVnQm99oMtSKJEw7hu0W9LwwAll Articles