如何使用vb6获取mysql中的列数 [英] how to get number of column in mysql using vb6

查看:196
本文介绍了如何使用vb6获取mysql中的列数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有任何方法可以计算vb6中表格中的列,因为我会尝试找到它但我可以获得行计数和字段数....



我正在使用ADODB,mySQL和VB6 ......



另一个是,我正在使用OPENSCHEMA方法获取列名称,除了使用OPENSCHEMA还有其他方法吗?

i would like to know if there any ways to count the column in table in vb6, because i'd try find it but i just can get the row counting and field count....

i'm using ADODB,mySQL and VB6...

another is, i'm using OPENSCHEMA method to get the column name, is there any other way than using OPENSCHEMA?

推荐答案

Un 幸运的是我没有ADODB的经验,请检查这些



来自ADODB的列名记录集 [ ^ ]

当您获得列集合时,您将获得列数。

计算记录集中的记录数量 ^ ]



不错的建议:使用.NET而不是使用VB6。
Unfortunately I don't have experience in ADODB, check these

Column Name from ADODB Recordset[^]
When you get column collection then you get the column count.
Counting the Number of Records in a Recordset^]

Nice suggestion : Go with .NET instead of playing with VB6.


< a href =http://p2p.wrox.com/access-vba/38222-column-name-adodb-recordset.html> http://p2p.wrox.com/access-vba/38222-column-name -adodb-recordset.html [ ^ ]



=)与thatraja给我的相同
http://p2p.wrox.com/access-vba/38222-column-name-adodb-recordset.html[^]

=) same as what thatraja gave me


将所有数据加载到数据表





int colmcount = datatable.Columns.Count;
load all data to datatable


int colmcount=datatable.Columns.Count;


这篇关于如何使用vb6获取mysql中的列数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆