|
|
@@ -111,7 +111,6 @@ public class DbConnection {
|
|
|
stmt = conn.createStatement();
|
|
|
Number = stmt.executeUpdate(sql);
|
|
|
// update by gongbaolei for getGeneratedKeys
|
|
|
- // �õ�����ӻ��߸��µ����ID
|
|
|
if (Number > 0) {
|
|
|
ResultSet rs = stmt.getGeneratedKeys();
|
|
|
while (rs.next()) {
|
|
|
@@ -224,4 +223,10 @@ public class DbConnection {
|
|
|
}
|
|
|
return Number;
|
|
|
}
|
|
|
+
|
|
|
+ public static void main(String[] args){
|
|
|
+ DbConnection connection=new DbConnection();
|
|
|
+ connection.executeQuery("Select a.PK AS BrokerPK, a.MemberPK, a.superPK, \t b.Tel, b.Pass, a.Name, a.IsAdmin, a.Auth, b.MembType From BrokerInfor a Left Join MemberInfo b on a.MemberPK = b.PK Where b.Tel='admin' ");
|
|
|
+ System.out.println("");
|
|
|
+ }
|
|
|
}
|