我在这里只是一个新手程序员,我需要你的帮助才能开始研究这个......
我正在尝试使用/复制现有方法:
files_fdtable(newf)->fd[0] = NULL
我打算创建另一个createCancelRecord方法,然后我将添加查询并从那里创建一个循环。有关如何编码的任何想法?感谢
答案 0 :(得分:0)
Connection con=DriverManager.getConnection("connection url","user_name","password");//create connection
Statement stmt=con.createStatement();//create a statement
ResultSet rs=stmt.executeQuery("select * from table_name"); //this stores the result of select statement into ResultSet object
while(rs.next())
System.out.println(rs.getInt(1)+" "+rs.getString(2)+" "+rs.getString(3)); ////this is the loop to print each row