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

 ·怎样才能去掉td里的空隙呀    »显示摘要«
    摘要: <table height="100%" cellspacing="0" cellpadding="0" width="100%" bgcolor="white" border="0"><!--#333333 --> <tr> ......
    摘要: 我想在机器上安装1.4.2和1.5.0的jdk,请问我该如何设置环境变量,以保证能正确运行,谢谢! ......


数据库问题

我想问一下:就是能不能使用编程的方式得到数据库中表的字段名称,注意:不要其中的数据.如果能,该怎么实现??

NO.1   作者: njhyh

Dim   inta   As   Integer  
  Dim   ds   As   New   DataSet  
  Dim   sta,   stb   As   String   取前兩個字段的值  
  ds   =   ExecuteSQL("select   YHID,MC,ZH   from   BA_USER")  
  For   inta   =   0   To   ds.Tables(0).Rows.Count()   -   1                         用Ds.tables(0).rows.count获得表记录行数  
  sta   =   ds.Tables(0).Columns.Item(0).ToString                     取出列名   人员ID     items(inta).item(0)  
  stb   =   ds.Tables(0).Columns.Item(1).ToString                     取出列名   姓名ds.Tables(0).items(inta).item(1)  
  sta   =   ds.Tables(0).Rows.Item(inta).Item(0)  
  stb   =   ds.Tables(0).Rows.Item(inta).Item(1)  
  Next  
   
  测试过得,试一试  
 


    摘要: oledbconnection myconnection = new oledbconnection("provider=microsoft.jet.oledb.4.0;data source="+server.mappath("china.mdb")+""); oledbcommand mycommand = new o......
» 本期热门文章:
· 热门栏目:
» 相关精选文章
» 其它相关:

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