Hi all,
I am sorry , I have got the solution.
I should write it so:
�� �ߟߟߟߟߟ�Class.forName("org.postgresql.Driver");
�� �ߟߟߟߟߟ�Properties info=new Properties();
�� �ߟߟߟߟߟ�info.put("user","postgres");
�� �ߟߟߟߟߟ�info.put("password","");
�� �ߟߟߟߟߟ�info.put("charSet","GBK");
�� �ߟߟߟߟߟ�Connection dbconn=DriverManager.getConnection(
�� �ߟߟߟߟߟߟߟߟߟ�"jdbc:postgresql:redauto",info);
�� �ߟߟߟߟߟ�Statement st = dbconn.createStatement();
�� �ߟߟߟߟߟ�String str_sql="SELECT * FROM customer where cname='"+t1+"'";
�� �ߟߟߟߟߟ�System.out.println(str_sql);
�� �ߟߟߟߟߟ�ResultSet rs = st.executeQuery(str_sql);

then all Chinese query critery is in order.

but the make error still harass me. if anyone can help me?

> 
> 
> 
> 
> I am shade to have disturbed you.
> you are kind for me if you can give any sugestion.
> Thanks very much.
> 
> malix
> shanghai china
> 



---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply via email to