Hello, members of the forum.
Help, who can, make a sql student a request to select a table entry by its number. The request (compiled by me) looks like this:
try { String sqlReqest = "select * from "+strTableName+" where id = [3,5,7]"; statement.executeUpdate(sqlReqest); // SELECT * FROM mytable WHERE id = [2, 5, 11] } catch(Exception ex) It returns a permanent error: too few parameters are required 2. When I specify a single number in the parameters without [], then an error: too few parameters are required 1. Tell me the correct query record.
Is there any way to determine the number of records in a table?