JAVA ee6 result结果集_java对数据库的表插入操作时,显示已生成用于更新的结果集...
package chang;???????????????????????????????????????????????? //??? 一個插入操作在兩行 * 號之間 應該是插入有問題?? 不知道問題出在哪,其他刪除,更新都可以實現(xiàn)。求教。。
import java.sql.*;
import java.io.*;
public class cha
{
public static void xianlu()
{
System.out.println("線路號"+"\t"+ "出發(fā)地"+"\t"+"目的地"+"\t"+"出發(fā)時間"+"\t"+"所需時間");
}
public static void qiche()
{
System.out.println("汽車編號"+"\t"+"汽車種類"+"\t"+"最大載客量"+"\t"+"線路號");
}
public static void gg()
{
System.out.println("公告編號"+"\t公告內(nèi)容"+"\t公告時間"+"\t通知人");
}
public static void hy()
{
System.out.println("會議編號"+"會議內(nèi)容"+"\t會議時間"+"\t參會人"+"\t\t記錄人");
}
public static void main(String[]args) throws SQLException
{
Connection con = null;
Statement stmt = null;
String url = "jdbc:sqlserver://localhost:1433;DatabaseName=changtuqiche";
try {
// 連接數(shù)據(jù)庫
con = DriverManager.getConnection(url, "sa", "1");
// 建立Statement對象
stmt = con.createStatement();
/**
* Statement createStatement() 創(chuàng)建一個 Statement 對象來將 SQL 語句發(fā)送到數(shù)據(jù)庫。
*/
// 執(zhí)行數(shù)據(jù)庫查詢語句
int z=1;
while(z!=0)
{
System.out.println("1.查詢2.插入3.更新4.刪除");
System.out.println("請選擇:");
int x=0;
try
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
x=Integer.parseInt(br.readLine());
}catch(IOException ex){}
if(x==5)? z=0;
if(x==1)
{
System.out.println("1.線路信息查詢2.汽車信息查詢3.車票信息查詢");
System.out.println("請選擇:");
int i=0;
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
i=Integer.parseInt(br.readLine());
}catch(IOException ex){}
if(i==1)
{
@SuppressWarnings("null")
ResultSet rs1=stmt.executeQuery("select 線路號,出發(fā)地,目的地,出發(fā)時間,所需時間? from 線路信息表");
xianlu();
while(rs1.next())
{
String a=rs1.getString("線路號");
String b=rs1.getString("出發(fā)地");
String c=rs1.getString("目的地");
String d=rs1.getString("出發(fā)時間");
int e1=rs1.getInt("所需時間");
System.out.println(a+b+"\t"+c+"\t"+d+"\t"+e1);
}
rs1.close();
}
if(i==2)
{
@SuppressWarnings("null")
ResultSet rs=stmt.executeQuery("select 汽車編號,汽車種類,最大載客量,線路號? from 汽車基本信息表");
qiche();
while(rs.next())
{
String a=rs.getString("汽車編號");
String b=rs.getString("汽車種類");
int c=rs.getInt("最大載客量");
String d=rs.getString("線路號");
System.out.println(a+"\t\t"+b+"\t\t"+c+"\t"+d);
}
rs.close();
}
if(i==3)
{
@SuppressWarnings("null")
ResultSet rs=stmt.executeQuery("select 車票編號,售票情況,售價,線路號 from 車票信息表");
chepiao();
while(rs.next())
{
int a=rs.getInt("車票編號");
String b=rs.getString("售票情況");
int c=rs.getInt("售價");
String d=rs.getString("線路號");
System.out.println(a+"\t"+b+"\t"+c+"\t"+d);
}
rs.close();
}
if(i==4)
{
@SuppressWarnings("null")
ResultSet rs=stmt.executeQuery("select 汽車編號,出發(fā)地,目的地,線路號,出發(fā)時間 from 乘客信息表");
chengke();
while(rs.next())
{
int a=rs.getInt("汽車編號");
String b=rs.getString("出發(fā)地");
int c=rs.getInt("目的地");
String d=rs.getString("線路號");
String e=rs.getString("出發(fā)時間 ");
System.out.println(a+"\t"+b+"\t"+c+"\t"+d+"\t"+e);
}
rs.close();
}
}
if(x==2)?????????????????????????????????/**********************************************************************/
{
System.out.println("1.線路信息插入 2.汽車信息插入 3.車票信息插入 4.乘客信息插入");
System.out.println("請選擇:");
int m=0;
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m=Integer.parseInt(br.readLine());
}catch(IOException ex){}
if(m==1){
String c1="",c2="",c3="",c4="",c5="";
//PreparedStatement pstmt1=con.prepareStatement("select * from Communication where Uname=?");
//pstmt1.setString(1,c1);
//ResultSet rs2=pstmt1.executeQuery();
System.out.println("輸入你要插入的線路號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c1=br.readLine();
}catch(IOException ex){}
System.out.println("c1="+c1);
System.out.println("輸入你要插入的出發(fā)地:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c2=br.readLine();
}catch(IOException ex){}
System.out.println("c2="+c2);
System.out.println("輸入你要插入的目的地:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c3=br.readLine();
}catch(IOException ex){}
System.out.println("c3="+c3);
System.out.println("輸入你要插入的出發(fā)時間:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c4=br.readLine();
}catch(IOException ex){}
System.out.println("c4="+c4);
System.out.println("輸入你要插入的所需時間:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c5=br.readLine();
}catch(IOException ex){}
System.out.println("c5="+c5);
PreparedStatement pstmt2=con.prepareStatement("insert into 線路信息表 (線路號,出發(fā)地,目的地,出發(fā)時間,所需時間)"+" values(?,?,?,?,?)");
pstmt2.setString(1,c1);
pstmt2.setString(2,c2);
pstmt2.setString(3,c3);
pstmt2.setString(4,c4);
pstmt2.setString(5,c5);
//pstmt2.executeQuery();
pstmt2.executeUpdate();
System.out.println("插入成功!");
pstmt2.close();
//pstmt1.close();
//rs2.close();
}???????????? ?????????????????????????? ? /*********************************************************************/
if(m==2){
String c1="",c2="",c3="",c4="";
//PreparedStatement pstmt1=con.prepareStatement("select * from Memo where Uname=?");
//pstmt1.setString(1,c1);
//ResultSet rs2=pstmt1.executeQuery();
System.out.println("輸入你要插入的汽車編號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c1=br.readLine();
}catch(IOException ex){}
System.out.println("c1="+c1);
System.out.println("輸入你要插入的汽車:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c2=br.readLine();
}catch(IOException ex){}
System.out.println("c2="+c2);
System.out.println("輸入你要插入的最大載客量:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c3=br.readLine();
}catch(IOException ex){}
System.out.println("c3="+c3);
//ResultSet rs2=pstmt1.executeQuery();
System.out.println("輸入你要插入的線路號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c4=br.readLine();
}catch(IOException ex){}
System.out.println("c4="+c4);
PreparedStatement pstmt2=con.prepareStatement("insert into 汽車基本信息表 values(?,?,?,?)");
pstmt2.setString(1,c1);
pstmt2.setString(2,c2);
pstmt2.setString(3,c3);
pstmt2.setString(4,c4);
pstmt2.executeUpdate();
System.out.println("插入成功!");
pstmt2.close();
//pstmt1.close();
//rs2.close();
}
if(m==3){
String c1="",c2="",c3="",c4="";
//PreparedStatement pstmt1=con.prepareStatement("select * from Diary where Uname=?");
//pstmt1.setString(1,c1);
//ResultSet rs2=pstmt1.executeQuery();
System.out.println("輸入新的車票編號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c1=br.readLine();
}catch(IOException ex){}
System.out.println("c1="+c1);
System.out.println("輸入售票情況:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c2=br.readLine();
}catch(IOException ex){}
System.out.println("c2="+c2);
System.out.println("輸入車票售價:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c3=br.readLine();
}catch(IOException ex){}
System.out.println("c3="+c3);
System.out.println("輸入該車票線路號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c4=br.readLine();
}catch(IOException ex){}
System.out.println("c4="+c4);
PreparedStatement pstmt2=con.prepareStatement("insert into 車票信息表 values(?,?,?,?)");
pstmt2.setString(1,c1);
pstmt2.setString(2,c2);
pstmt2.setString(3,c3);
pstmt2.setString(4,c4);
pstmt2.executeUpdate();
System.out.println("插入成功!");
pstmt2.close();
//pstmt1.close();
//rs2.close();
}
if(m==4){
String c1="",c2="",c3="",c4="",c5="";
//PreparedStatement pstmt1=con.prepareStatement("select * from Finance where Uname=?");
//pstmt1.setString(1,c1);
//ResultSet rs2=pstmt1.executeQuery();
System.out.println("輸入你要添加乘客的汽車編號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c1=br.readLine();
}catch(IOException ex){}
System.out.println("c1="+c1);
System.out.println("輸入該乘客出發(fā)地:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c2=br.readLine();
}catch(IOException ex){}
System.out.println("c2="+c2);
System.out.println("輸入該乘客目的地:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c3=br.readLine();
}catch(IOException ex){}
System.out.println("c3="+c3);
System.out.println("輸入乘坐線路號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c4=br.readLine();
}catch(IOException ex){}
System.out.println("c4="+c4);
System.out.println("輸入乘客出發(fā)時間:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
c4=br.readLine();
}catch(IOException ex){}
System.out.println("c5="+c5);
PreparedStatement pstmt2=con.prepareStatement("insert into 乘客 values(?,?,?,?,?)");
pstmt2.setString(1,c1);
pstmt2.setString(2,c2);
pstmt2.setString(3,c3);
pstmt2.setString(4,c4);
pstmt2.setString(5,c5);
pstmt2.executeUpdate();
pstmt2.close();
System.out.println("添加成功!");
//pstmt1.close();
//rs2.close();
}
}
if(x==3)
{
System.out.println("1.線路信息修改 2.汽車信息修改 3.車票信息修改 4.乘客信息修改");
System.out.println("請選擇:");
int m=0;
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m=Integer.parseInt(br.readLine());
}catch(IOException ex){}
if(m==1){
String m11="";String m13="";int m12=0;
System.out.println("選擇你要修改的線路號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m11=br.readLine();
}catch(IOException ex){}
PreparedStatement pstmt31=con.prepareStatement("select * from 線路信息表 where 線路號=?");
pstmt31.setString(1,m11);
ResultSet rs3=pstmt31.executeQuery();
if(rs3.next()){
System.out.println("輸入你要修改的項:1.出發(fā)地 2.目的地 3.出發(fā)時間 4.所需時間");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m12=Integer.parseInt(br.readLine());
}catch(IOException ex){}
if(m12==1){System.out.println(" 輸入你修改后的出發(fā)地:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m13=br.readLine();
}catch(IOException ex){}
pstmt31.close();
PreparedStatement pstmt3=con.prepareStatement("Update 線路信息表 set 出發(fā)地=? where? 線路號=?");
pstmt3.setString(1,m13);
pstmt3.setString(2,m11);
pstmt3.executeUpdate();
System.out.println("修改成功!");
}
if(m12==2){System.out.println(" 輸入你修改后的目的地:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m13=br.readLine();
}catch(IOException ex){}
pstmt31.close();
PreparedStatement pstmt3=con.prepareStatement("Update 線路信息表 set 目的地=? where? 線路號=?");
pstmt3.setString(1,m13);
//pstmt3.setint(2,m11);
pstmt3.setString(2,m11);
pstmt3.executeUpdate();
System.out.println("修改成功!");
rs3.close();
//pstmt3.close();
}
if(m12==3){System.out.println(" 輸入你修改后的出發(fā)時間:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m13=br.readLine();
}catch(IOException ex){}
pstmt31.close();
PreparedStatement pstmt3=con.prepareStatement("Update 線路信息表 set 出發(fā)時間=? where 線路號=?");
pstmt3.setString(1,m13);
//pstmt3.setint(2,m11);
pstmt3.setString(2,m11);
pstmt3.executeUpdate();
System.out.println("修改成功!");
rs3.close();
//pstmt3.close();
if(m12==4){System.out.println(" 輸入你修改后的所需時間:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m13=br.readLine();
}catch(IOException ex){}
pstmt31.close();
PreparedStatement pstmt311=con.prepareStatement("Update 線路信息表 set 所需時間=? where 線路號=?");
pstmt311.setString(1,m13);
//pstmt3.setint(2,m11);
pstmt311.setString(2,m11);
pstmt311.executeUpdate();
System.out.println("修改成功!");
rs3.close();
//pstmt3.close();
}
}
else{System.out.println("你要更改的項不存在!");}
}
if(m==2){
String m111="";String m131="";int m121=0;
System.out.println("選擇你要修改的汽車編號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m111=br.readLine();
}catch(IOException ex){}
PreparedStatement pstmt311=con.prepareStatement("select * from 汽車基本信息表 where 汽車編號=?");
pstmt311.setString(1,m111);
ResultSet rs31=pstmt311.executeQuery();
if(rs31.next()){
System.out.println("輸入你要修改的項:1.汽車種類 2.最大載客量 3.線路號");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m121=Integer.parseInt(br.readLine());
}catch(IOException ex){}
if(m121==1){System.out.println(" 輸入你修改后的汽車種類:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m131=br.readLine();
}catch(IOException ex){}
pstmt311.close();
PreparedStatement pstmt3=con.prepareStatement("Update? 汽車基本信息表 set 汽車種類=? where? 汽車編號=?");
pstmt3.setString(1,m131);
pstmt3.setString(2,m111);
pstmt3.executeUpdate();
System.out.println("修改成功!");
}
if(m121==2){System.out.println(" 輸入你修改后的最大載客量:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m131=br.readLine();
}catch(IOException ex){}
pstmt311.close();
PreparedStatement pstmt3=con.prepareStatement("Update? 汽車基本信息表 set 最大載客量=? where? 汽車編號=?");
pstmt3.setString(1,m131);
//pstmt3.setint(2,m11);
pstmt3.setString(2,m111);
pstmt3.executeUpdate();
System.out.println("修改成功!");
rs31.close();
//pstmt3.close();
}
if(m121==3){System.out.println(" 輸入你修改后的線路號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m131=br.readLine();
}catch(IOException ex){}
pstmt311.close();
PreparedStatement pstmt3=con.prepareStatement("Update? 汽車基本信息表 set 線路號=? where 汽車編號=?");
pstmt3.setString(1,m131);
//pstmt3.setint(2,m11);
pstmt3.setString(2,m111);
pstmt3.executeUpdate();
System.out.println("修改成功!");
rs31.close();
}
}
else{System.out.println("你要更改的項不存在!");}
}
if(m==3){
String m111="";String m131="";int m121=0;
System.out.println("選擇你要修改的車票編號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m111=br.readLine();
}catch(IOException ex){}
PreparedStatement pstmt311=con.prepareStatement("select * from 車票信息表 where 車票編號=?");
pstmt311.setString(1,m111);
ResultSet rs31=pstmt311.executeQuery();
if(rs31.next()){
System.out.println("輸入你要修改的項:1.售票情況 2.售價 3.線路號");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m121=Integer.parseInt(br.readLine());
}catch(IOException ex){}
if(m121==1){System.out.println(" 輸入你修改后的售票情況:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m131=br.readLine();
}catch(IOException ex){}
pstmt311.close();
PreparedStatement pstmt3=con.prepareStatement("Update 車票信息表 set 售票情況=? where? 車票編號=?");
pstmt3.setString(1,m131);
pstmt3.setString(2,m111);
pstmt3.executeUpdate();
System.out.println("修改成功!");
}
if(m121==2){System.out.println(" 輸入你修改后的售價:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m131=br.readLine();
}catch(IOException ex){}
pstmt311.close();
PreparedStatement pstmt3=con.prepareStatement("Update 車票信息表 set 售價=? where? 車票編號=?");
pstmt3.setString(1,m131);
//pstmt3.setint(2,m11);
pstmt3.setString(2,m111);
pstmt3.executeUpdate();
System.out.println("修改成功!");
rs31.close();
//pstmt3.close();
}
if(m121==3){System.out.println(" 輸入你修改后的線路號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m131=br.readLine();
}catch(IOException ex){}
pstmt311.close();
PreparedStatement pstmt3=con.prepareStatement("Update 車票信息表 set 線路號=? where 車票編號=?");
pstmt3.setString(1,m131);
//pstmt3.setint(2,m11);
pstmt3.setString(2,m111);
pstmt3.executeUpdate();
System.out.println("修改成功!");
rs31.close();
}
}
else{System.out.println("你要更改的項不存在!");}
}
if(m==4){
String m111="";String m131="";int m121=0;
System.out.println("選擇你要修改的汽車編號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m111=br.readLine();
}catch(IOException ex){}
PreparedStatement pstmt311=con.prepareStatement("select * from 乘客信息表 where 汽車編號=?");
pstmt311.setString(1,m111);
ResultSet rs31=pstmt311.executeQuery();
if(rs31.next()){
System.out.println("輸入你要修改的項:1.出發(fā)地2.目的地3.線路號 4.出發(fā)時間");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m121=Integer.parseInt(br.readLine());
}catch(IOException ex){}
if(m121==1){System.out.println(" 輸入你修改后的出發(fā)地:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m131=br.readLine();
}catch(IOException ex){}
pstmt311.close();
PreparedStatement pstmt3=con.prepareStatement("Update 乘客信息表 set 出發(fā)地=? where? 汽車編號=?");
pstmt3.setString(1,m131);
pstmt3.setString(2,m111);
pstmt3.executeUpdate();
System.out.println("修改成功!");
}
if(m121==2){System.out.println(" 輸入你修改后的目的地:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m131=br.readLine();
}catch(IOException ex){}
pstmt311.close();
PreparedStatement pstmt3=con.prepareStatement("Update 乘客信息表 set 目的地=? where? 汽車編號=?");
pstmt3.setString(1,m131);
//pstmt3.setint(2,m11);
pstmt3.setString(2,m111);
pstmt3.executeUpdate();
System.out.println("修改成功!");
rs31.close();
//pstmt3.close();
}
if(m121==3){System.out.println(" 輸入你修改后的線路號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m131=br.readLine();
}catch(IOException ex){}
pstmt311.close();
PreparedStatement pstmt3=con.prepareStatement("Update 乘客信息表 set 線路號=? where 汽車編號=?");
pstmt3.setString(1,m131);
//pstmt3.setint(2,m11);
pstmt3.setString(2,m111);
pstmt3.executeUpdate();
System.out.println("修改成功!");
rs31.close();
}
if(m121==4){System.out.println(" 輸入你修改后的出發(fā)時間:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
m131=br.readLine();
}catch(IOException ex){}
pstmt311.close();
PreparedStatement pstmt3=con.prepareStatement("Update 乘客信息表 set 出發(fā)時間=? where 汽車編號=?");
pstmt3.setString(1,m131);
//pstmt3.setint(2,m11);
pstmt3.setString(2,m111);
pstmt3.executeUpdate();
System.out.println("修改成功!");
rs31.close();
}
}
}
else{System.out.println("你要更改的項不存在!");}
}
}
if(x==4)
{
System.out.println("1.線路信息刪除 2.汽車信息刪除 3.車票信息刪除 4.乘客信息刪除");
System.out.println("請選擇:");
int i=0;
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
i=Integer.parseInt(br.readLine());
}catch(IOException ex){}
if(i==1){
String S1="";
System.out.println("輸入你要刪除的線路信息表中的線路號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
S1=br.readLine();
}catch(IOException ex){}
PreparedStatement pstmt2=con.prepareStatement("delete from 線路信息表 where 線路號=?");
pstmt2.setString(1,S1);
System.out.println(S1);
pstmt2.executeUpdate();
System.out.println("已刪除!");
pstmt2.close();
}
if(i==2){
String S1="";
System.out.println("輸入你要刪除的汽車信息表的汽車編號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
S1=br.readLine();
}catch(IOException ex){}
PreparedStatement pstmt2=con.prepareStatement("delete from 汽車基本信息表 where 汽車編號=?");
pstmt2.setString(1,S1);
pstmt2.executeUpdate();
System.out.println("已刪除!");
pstmt2.close();
}
if(i==3){
String S1="";
System.out.println("輸入你要刪除的車票信息表的車票編號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
S1=br.readLine();
}catch(IOException ex){}
PreparedStatement pstmt2=con.prepareStatement("delete from 車票信息表 where 車票編號=? ");
pstmt2.setString(1,S1);
pstmt2.executeUpdate();
System.out.println("已刪除!");
pstmt2.close();
}
if(i==4){
String S1="";
System.out.println("輸入你要刪除的乘客信息表的汽車編號:");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
S1=br.readLine();
}catch(IOException ex){}
PreparedStatement pstmt2=con.prepareStatement("delete from 乘客信息表 where 汽車編號=? ");
pstmt2.setString(1,S1);
pstmt2.executeUpdate();
System.out.println("已刪除!");
pstmt2.close();
}
}
}
}catch(Exception e){
System.out.println(e);
}
}
private static void chengke() {
// TODO Auto-generated method stub
}
private static void chepiao() {
// TODO Auto-generated method stub
}
}
總結
以上是生活随笔為你收集整理的JAVA ee6 result结果集_java对数据库的表插入操作时,显示已生成用于更新的结果集...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql 删除数据后myd_Windo
- 下一篇: java将本地图片转为bas64_JAV