0
我有一個last_insert_rowid()
的問題。它總是返回0Java的sqlite last_insert_rowid()返回0
String query = "SELECT last_insert_rowid() AS LAST FROM UGYFEL";
PreparedStatement pst1 = connection.prepareStatement(query);
ResultSet rs1 = pst1.executeQuery();
JOptionPane.showMessageDialog(null, rs1.getString("LAST"));
pst1.execute();
//JOptionPane.showMessageDialog(null, "Adat elmentve");
pst1.close();
rs1.close();