从JSP执行SQL查询

时间:2013-04-20 13:45:57

标签: sql jsp jdbc

我有一个SQL查询:select name || 'hh' from table;

如何在JDBC中使用相同的语句?

String sql = "SELECT username || 'hh' from dba_users";   -----> not working
PreparedStatement stmt  = conn.prepareStatement (sql);

0 个答案:

没有答案