要在Javascript里实现一个数据库查询语句
1 Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
2 Connection conn=DriverManager.getConnection(url,"","");
3 Statement sqlStatement=conn.createStatement();
4 String sql="select city from city where father='"+ +"'";
5 ResultSet r=statement.executeQuery(sql);
这里第4行的 city 是一张表 city里的内容,要通过 另一张表 Province 里的 ProvinceID 对 City表里的 Father 来查询
City表中的Father 与 Province表里的ProvinceID 是一样的内容
<form action="jiudian_chaxun_list_index.jsp" method="post" name="form1">
6 <select name="province" id="province">
7 <option value="请选择">请选择</option>
8 <option value="110000">北京市</option>
第6 7 8行里的value值就是Privince表的ProvinceID, 拿value的值对照city表中的 Father 来查询 City表中的 City
问题是:
第4行的查询语句应该怎么写,我用的是ACCESS数据库