package suiYi;import java.sql.Connection;import java.sql.SQLException;import java.sql.Statement;public class zhucegetsql {public static void main(String[] a){String panduan="true";new sqldate();sqldate sd=new sqldate();Connection conn=sd.Sqlconn();try {Statement stat = conn.createStatement();stat.executeUpdate("insert into user(id,name) values(200802,'Jack');");stat.close();if(!conn.isClosed()){System.out.println("锟斤拷菘锟斤拷锟斤拷映晒锟�");}else{conn.close();}}catch (SQLException e) {e.printStackTrace();} System.out.print (panduan);
}}我是想问 我那个乱码里应该写什么 不懂。
添加回答
举报
0/150
提交
取消