asp 两个数据库 如何实现
在t1数据库里有一个表a
如
id 年纪
1 21
2 22
我现在要增加一行 学历
其中学历里面的数据在例外一个数据库里b,表为t2 通过id相关联
<table>
<tr>
<td>id</td>
<td>年纪</td>
<td>学历</td>
</tr>
do whlie not rs.eof '得到student的数据
x=rs("id")
rs1.open"select 学历 from t2 where id='"&x&"'",conn1,1,1
%>
<tr>
<td><%=rs("id")%>
<td><%=rs("年纪")%>
<td><%=rs("学历")%>
</tr>
<%rs.movenext
rs1.movenext
loop
%>
我知道程序肯定有问题,各位帮我改哈了,谢了