asp中显示不同表中的相同字段内容

2024-11-24 17:39:10
推荐回答(2个)
回答1:

楼上的太专业了,我这里有简单点的示例:

sql="select * from new,channl where new.channl_id=channl.channl_id"

rs.open sql,conn,1,1

(大概的代码已经贴出来了,你不要告诉我你看不懂哈。。。)

回答2:

dim sql:sql="select corpuser.c_name,corpuser.usernumber as cusername,"&_

"job.usernumber as jusername from CorpUser,job where 条件"

'..........

'CorpUser中的usernumber

response.write rs("cusername")

'job中的usernumber

response.write rs("jusername")