同时读取access两张表
请教
在access中 我有表1
id1 id2 id3 id4
1 2 3 0
2 2 3 1
表2
id0 ad1 ad2 ad3 ad5 ad6
1 2 3 4 5 6
我想同时读取两张表的内容。
我开始用 selecet 表1.*,表2。* from 表1,表2 where id1 = id0
.这样好像不行。
然后 带有 union 联合查询。不过需要 两表读取的列相同。
然后我就 没办法了。请教大侠门帮我看看。
如需要阅读该回复,请登录或注册CSDN!
相关问答:
<?php
include("adodb/adodb.inc.php");
$db = &NewADOConnection("access");
$access = realpath("Data.mdb");
$dsn = "Provider=Microsoft.J ......
初用ACCESS数据库,要实现一个关联查询,sql语句如下:select pid,product_Type.name as tid,name,img_url,context,remark from Product join product_Type on product.type_id = product_Type.type_id order by pid ......
sql语句:
SELECT top 12 Forum.ID,Forum.topic,Reforum.id,Reforum.username,Reforum.posttime,Reforum.postip,Forum.username from Forum INNER JOIN Reforum ON Forum.ID = Reforum.topicid wher ......