VB与EXCEL的无缝连接:
"从excel文件获得数据后,插入记录到SQL Server的数据表
Dim dataTable1 As DataTable = New DataTable()
Dim sqlDA1 As SqlClient.SqlDataAdapter = New SqlClient.SqlDataAdapter("SELECT 部门,全年任务, 本年累计完成,上年同期完成,
[完成全年任务的%],[可比增长%] FROM Rwb ", sqlcon)
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001479s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.097792s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001104s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001271s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001264s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003563s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.002795s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.004354s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.019412s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001324s ]
UPDATE `jrk_articles` SET `hits` = 3 WHERE `id` = 327470 [ RunTime:0.014474s ]