高分相送:::::::::::请问:关于数据表的链接。

在sql server 2000中。

现有两张表, A和B 其中A表中的C字段与B表中的D字段相同,D字段唯一。

我在网页1.asp中调用A表中数据,再由A表中C字段做链接,调用B表中D字段形成2.asp,显示B表中以D做关键字的那一行信息。

请问两个网页中怎样编写代码?

越详细越好, 不胜感激。
---------------------------------------------------------------

2.asp
sql="select * from B where companyname='"&request("id")&"'"

Published At
Categories with Web编程
Tagged with
comments powered by Disqus