多表联合查询问题.doc

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
多表联合查询问题 问问, 我问有一据问儿数sjk.mdb,有5问表分问问a表,b表,c表,d表,e表,问完全一问构,都有字段:问号,地址,名称,其它. 我是用access问接据问数,用DataGrid1 问示. 我要问的是找"名称"字段,问问件在条Text1指定. 问问问才能像问问表一问把问怎5问表中符合件的都出问示在条找来DataGrid1中我用如下问句,出问,提示:JOIN 操作问法问问 Adodc1.RecordSource = "select * from (((a表 inner join b表 on a表.名称=b表.名称) inner join c表 on a表.名称=c表.名称) inner join d表 on a表.名称=d表.名 称) inner join e表 on a表.名称=e表.名 称'" + " where 名 称Like " & "'" & text1.text & "'" 问问问在哪儿?问如何问句代问写? Adodc1.RecordSource = "select new_table.问号,new_table.地址,new_table.名称,new_table.其 它from (select * from a union all select * from b union all select * from c union all select * from d union all select * from e) as new_table 名 称Like " & "'" & text1.text & "'" 问是问示 from 子句问法问问 不知道问在,哪儿 答案, Adodc1.RecordSource = "select new_table.问号,new_table.地址,new_table.名称,new_table.其 它from (select * from a union all select * from b union all select * from c union all select * from d union all select * from e) as new_table 名 称Like " & "'" & text1.text & "'" ----问充--- new_table不是新建的表~只是问那括里的问问起一问名号个 要不可以改成 Adodc1.RecordSource = "select new_table.问号,new_table.地址,new_table.名称,new_table.其 它from (select * from a union all select * from b union all select * from c union all select * from d union all select * from e) as new_table where名 称Like " & "'" & text1.text & "'" ---问充--- 少了写个where 问问, 我问有一据问儿数sjk.mdb,有5问表问完全一问构,都有字段:问号,地址,名称,其它.我是用access问接据问数,用DataGrid1 问示. 我要问的是找"名称"字段,问问件在条Text1指定. 问问问才能像问问表一问把问怎5问表中符合件的都出问示在条找来DataGrid1中. 答案, select 名 称from a union select 名 称from b union where 名 称= “'text1.text'”;问问: access数据有相同字段的多个,问问问问问问问问问问问问3个以上,表,字段定条件的多问问问问问问问问问问问问 表合怎写,,,问问问问问问问问问问 答案: 问问的使用where a表.相同字段=b表.相同字段 and a表.相同字段=c表.相同字段问问的使用问接问问字. 问问, 1、在同一数据里问问 2、已知有两表:表A,表B 3、A表字段:ID,用问ID,名称,品信息问问问问 4、B表字段:ID,用问ID,会性问问问 5、两表字段:用问问问问问问问ID 6、:问问问问问A表所有字段 7、条件:会性问问问问“VIP” 答案: SELECT A.* FROM 表A A INNER JOIN 表B B ON A.用问ID = B.用问ID WHERE B.问性问 会= 'VIP' 问问, 有ABCD 4 问表 表A 字段,customerid,customername,linkcontent 表B 字段,customerid,vehicleid表C 字段,vehicleid,licensecode,modelafte

文档评论(0)

ryaoo + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档