选择答案:
设有一ACCESS数据库的ODBC数据源为:source,用户名为:tester,密码为:1234。
数据库中表person的数据如下:
ID | name |
1 | john |
2 | hl |
请用JDBC-ODBC桥来连接数据库,输出数据库中所有数据,并插入一条记录(3,”dh”)到数据库中。
public class test{
static int arr[]=new int[10];
public static void main(String at[]){
System.out.println(arr[0]);
}
}
哪个选项是正确的( )
A. 编译时将产生错误; B. 编译时正确,运行时将产生错误;
C. 输出零; D. 输出空。