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

 

 ·struts:如何动态的使用tag    »显示摘要«
    摘要: 比如说: 我想要<html:text property="mykey"> 但现在我这个"mykey"需要是动态生成的, 我想这样大约能表达我的意思: <html:text property="<bean:write name="xxx"/>" /> 当然,这样写法是通不过编译......
 ·select count(*) from t1 where f    »显示摘要«
    摘要: 如题。它与 select * from t1 where f_bh = 10 有什么区别?为什么当表中 h_bh 没有 10 时。(int i = select count(*) from t1 where f_bh = 10 ) i 的值是 1,而 int j=select * from t1 where f_bh = 10 j 的值是 0呢? ......


怎样得到Acess数据库中的表名

怎样得到Acess数据库中的表名  
 

NO.1   作者: Montaque

写一个查询.  
  select   *   from   msysobjects   where   type=1   and   flags=0

NO.2   作者: saucer

try   to   run   a   sql   statement    
   
  SELECT   MSysObjects.Name  
  FROM   MSysObjects  
  WHERE   ((Left([name],4)<>"MSys")   AND   ((MSysObjects.Type)=1))  
  ORDER   BY   MSysObjects.Name  
   
  or   use   OleDbConnections   GetOleDbSchemaTable   Method

NO.3   作者: ameng_2002

是所有表吗?  
  select   *   from   sysobjects   where   OBJECTPROPERTY(id,   NIsUserTable)   =   1

NO.4   作者: ameng_2002

sorry,access数据库不能用下面的语句  
  select   *   from   sysobjects   where   OBJECTPROPERTY(id,   NIsUserTable)   =   1  
   
  用思归的吧  
  可能是权限问题,你把数据库放在项目的目录下面试试  
 


 ·一个查询    »显示摘要«
    摘要: 如何从表中查询出总数量: 即,select distinct a,b,c from table 然后计算出上面查询的总数量count 我写的是:select count(t.dept) from (select distinct a,b,c from table ) t 不过不正确。 ......
» 本期热门文章:

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