I'm using JDBC to connect to the Oracle database and ask how many methods are in the String class. I keep getting the following error:
Exception in thread "main" java.sql.SQLSyntaxErrorException: ORA-00936: missing expression
at the following line:
ResultSet res1 = stmt.executeQuery("SELECT (Distinct method_name) FROM all_java_method WHERE name LIKE 'String' Order BY method_name");
I don't have a ton of experience with SQL yet so any help would be appreciated. Thanks.
(Distinct method_name)withDistinct method_nameand'String'with'String%'or'%String%'