CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
IBM Rational 系统开发最佳实践工具包 WebSphere MQ 最佳实践 TOP 15
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  .NET技术 >  C#

请各位大虾出手相助:ACCESS的SQL语句支持多条SELECT语句吗?(C#+ACCESS)

楼主loveme4180(孤独剑)2006-03-08 17:39:57 在 .NET技术 / C# 提问

string   sql   =   @"  
  select   top   6   a.ID,Title,a.CreateDate   from   Office_Notice   a,Office_NoticeType   b        
  where   a.TypeID=b.ID   and   b.Type='重要通知'   order   by   a.CreateDate   desc;        
     
  select   top   6   a.ID,Title,a.CreateDate   from   Office_Notice   a,Office_NoticeType   b        
  where   a.TypeID=b.ID   and   b.Type='学习培训'   order   by   a.CreateDate   desc;                        
         
                 
  select   top   5   ID,Matter   as   Title,CreateDate   from   Office_AvisoMain   order   by   ID   desc;                            
                 
  select   top   5   ID,Title,AddDate   as   CreateDate     from   Inform_BBS   order   by   ID   desc;                      
       
       
  select   top   6   a.ID,Title,a.CreateDate   from   Office_Notice   a,Office_NoticeType   b        
  where   a.TypeID=b.ID   and   b.Type='财务通告'   order   by   a.CreateDate   desc;          
                       
     
  select   top   6   a.ID,Title,a.CreateDate   from   Office_Notice   a,Office_NoticeType   b        
  where   a.TypeID=b.ID   and   b.Type='客服通告'   order   by   a.CreateDate   desc;          
       
                       
  select   top   5   *   from   Utility_URL;                                      
  select   ID,EmpName   from   Organ_Employees   where   del_flag=0;                                    
  select     top   5   *   from   Office_CodeUrl   order   by   Order_id";  
   
  数据库连接ACCESS,上面是SQL语句,不知道ACCESS的一条SQL语句支持多个SELECT不?请各位专家帮助~~~~ 问题点数:20、回复次数:2Top

1 楼califord(远方)回复于 2006-03-08 21:25:09 得分 5

是一样的Top

2 楼bbdog(贝贝狗)回复于 2006-03-08 22:36:30 得分 15

access是不支持这种sql语句批处理的,还是一条一条来处理吧.Top

相关问题

  • 请教sql/plus语句!高手相助!
  • Asp.net/C#/Sql语句问题?
  • PRO*C/C++的SQL语句问题
  • 急求一条sql语句?望大狭相助。。多谢了。
  • 求一SQL语句,望高手出手相助啊!!!!!!!!!!!!!!!!!!!!!!!!!!
  • 一个sql语句问题,望高手相助
  • 请教C#中的一个SQL语句
  • C#里执行SQL语句的问题
  • 急问!!sql语句的出错原因,请大家多多相助!!
  • 【求SQL语句】如何实现列横排,详见内,谢谢哥哥相助

关键词

  • 语句
  • office
  • top
  • createdate
  • typeid
  • desc
  • noticetype b where
  • notice
  • order
  • select top

得分解答快速导航

  • 帖主:loveme4180
  • califord
  • bbdog

相关链接

  • CSDN .NET频道
  • .NET类图书
  • C#类图书
  • .NET类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo