|
4#
楼主 |
发表于 2005-4-2 14:33:53
|
只看该作者
Originally posted by pcl2004_27 at 2005-4-1 10:10 PM:
楼主的代码有问题,修改代码如下:
'$Include "sqautil.sbh"
Sub Main
Dim Result As Integer
dim out1(1 to 3,1 to4) as Variant
dim connection,i as long
Dim retcode ...
感谢pcl的指点,我修改代码如下,终于取到了第2列。
'$Include "sqautil.sbh"
Sub Main
Dim Result As Integer
dim out1(1 to 3,1 to 4) as Variant
dim connection,i as long
Dim retcode As Variant
dim outputstr,query as string
i=1
connection = SQLOpen("DSN=te", outputstr,)
query="select * from te"
retcode = SQLExecQuery(connection,query)
retcode = SQLRetrieve(connection,out1())
while i<5
msgbox out1(2,i)
' sqaconsolewrite out1(1,i)
i=i+1
wend
retcode = SQLClose(connection)
End sub |
|