当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 正在连接...ora-12500: tns: 监听程序无法启动专用服务器进程 测试未成功。 ......
    摘要: window.open(aaa.jsp?operate=6,print,top=200,left=150,width=250,height=170,scrollbars=no) 结果弹出窗口虽然弹出,但是没有在当前窗口显示 如何在当前窗口显示,而且当前窗口不被覆盖 ......


sql查询语句问题:有人知道如何用SQL语句返回数据库myexample中所有表的表名吗

sql查询语句问题:有人知道如何用SQL语句返回数据库myexample中所有表的表名吗?

NO.1   作者: cmsoft

select   name   from   sysobjects   where   xtype=U  
   
   
  表信息都是放在系统对象表中的

NO.2   作者: mygoodbuy

读取access中所有表  
  set   rsSchema=conn.openSchema(20)    
  rsSchema.movefirst    
  Do   Until   rsSchema.EOF    
  if   rsSchema("TABLE_TYPE")="TABLE"   then    
  response.write   rsSchema("TABLE_NAME")  
  end   if    
  rsSchema.movenext    
  Loop    
   
  ~~~~~~~~~~~~~~~~~~~~~~~~  
  判断表是否存在  
  rs.open   "select   *   from   sysobjects   where   name=表名",conn,1,1  
  if   rs.eof   then  
        没有该表  
  else  
        可以操作该表  
  end   if  
       
     
   
   
   
 

NO.3   作者: ministrybill

在查询分析器中:  
  use   yourtable  
  select   *   from   sysobjects   where   xtype=U

NO.4   作者: wangyiyun0119

<!--   #INCLUDE   VIRTUAL="/adovbs.inc"   -->  
  <%  
  Set   Con   =   Server.CreateObject(   "ADODB.Connection"   )  
  Con.Open   "FILE   NAME=c:\yourDataLink.UDL"  
  queryType   =   adSchemaTables  
  criteria   =   Array(   "myexample",   Empty,   Empty,   "TABLE"   )  
  Set   RS   =   Con.OpenSchema(   queryType,   criteria   )  
  While   NOT   RS.Eof      
  Response.Write   RS(   2   )   &   "<br>"  
  RS.MoveNext  
  Wend  
  %>  
  adovbs.inc文件在你安装IIS的时候就安装在相应的目录下了,请你查找到文件,并复制到相应的目录下


 ·webmail 问题 有点哟    »显示摘要«
    摘要: 发送时显示 cdo.message 未能访问 这是什么意思呀 怎么办????? private void gobutton_click(object sender, system.eventargs e) { try { mailmessage amailmessage = new mailmessage(); amailmessage.from = fromtextbox.t......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE