Microsoft jet database engine 错误 '80004005'

来源:百度知道 编辑:UC知道 时间:2024/06/23 18:56:38
Microsoft jet database engine 错误 '80004005'
该特定字段 'username' 可以参考 SQL 语句中 FROM 子句列表中的多个表.
<%set conn=server.createobject("adodb.connection")
conn.connectionstring= "Provider=Microsoft.Jet.OLEDB.4.0;"&"Data Source="&server.MapPath( "biyesheji.mdb")
conn.open
set rs=server.createobject("adodb.recordset")
sql="select * from userbiao,yy where userbiao.username=yy.username and yy.username='"&session("username")&"'"
rs.open sql,conn,1,3
i = 1
while (not rs.eof )
if i mod 2 = 0 then yanse = "#99FFFF"
if i mod 2 = 1 then yanse = "#00CCFF"

%>

这个 userbiao ,yy 这两个 都 是 数据库里的表,
还有 在连接 两个 表时的连接代码应该怎么查询,代码是怎么样的?

把你的代码贴出来看一下。。。这个username可能有问题。。。具体我还不知道是哪有问题。。。

select * from userbiao,yy 这后面还跟个,yy是什么意思?

没见过同时连接两个表的。。。

sql="select * from userbiao,yy where userbiao.username=yy.username and yy.username='"&session("username")&"'"