I'm trying to find functional dependencies, my professor told us that we needed to use the following line of code. I believe that the error comes when referencing the table (t1.?) but I am not sure. I can not find anything online about this. Any help is appreciated.
PreparedStatement ps = con.prepareStatement("SELECT * FROM X AS t1 JOIN X AS t2 ON t1.? = t2.? WHERE t1.? <> t2.?");
The Error:
Exception in thread "main" java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''pi' = t2.'pi' WHERE t1.'hy' <> t2.'hy'' at line 1