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