select * from PERMISSION where id =290
我执行上面得语句是可以的,但是下的语句就不行
select * from PERMISSION where name =‘发信’
为什么啊?permission的id=290 的name就是‘发信’啊~~
我的连接如下:
try {
Class.forName("org.postgresql.Driver").newInstance();
System.out.println("Class.forName()");
} catch (IllegalAccessException ex) {
ex.printStackTrace();
} catch (InstantiationException ex) {
ex.printStackTrace();
} catch (ClassNotFoundException ex) {
ex.printStackTrace();
}catch (Exception ex) {
ex.printStackTrace();
}
String url="jdbc:postgresql://172.18.10.8:5432/jwebplus1581?user=postgres&password=12344";
Connection conn = null;
try {
conn = DriverManager.getConnection(url);
} catch (SQLException ex) {
ex.printStackTrace();
}
我执行上面得语句是可以的,但是下的语句就不行
select * from PERMISSION where name =‘发信’
为什么啊?permission的id=290 的name就是‘发信’啊~~
我的连接如下:
try {
Class.forName("org.postgresql.Driver").newInstance();
System.out.println("Class.forName()");
} catch (IllegalAccessException ex) {
ex.printStackTrace();
} catch (InstantiationException ex) {
ex.printStackTrace();
} catch (ClassNotFoundException ex) {
ex.printStackTrace();
}catch (Exception ex) {
ex.printStackTrace();
}
String url="jdbc:postgresql://172.18.10.8:5432/jwebplus1581?user=postgres&password=12344";
Connection conn = null;
try {
conn = DriverManager.getConnection(url);
} catch (SQLException ex) {
ex.printStackTrace();
}
执行这个语句没结果返回;
select * from PERMISSION where id =290
这个语句就有结果返回。
楼主可以共享一下解决方案。