显示标签中sql查询的数据 [英] Displaying data from a sql query in a label

查看:82
本文介绍了显示标签中sql查询的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我有以下代码:

Hello,

I have the following code:

展开 | 选择 | 换行 | 行号

推荐答案

你在哪里实际运行查询?您正在创建SQL语句,打开连接并关闭它,但从未实际执行查询。
Where are you actually running the query? You are creating your SQL statement, opening a connection and closing it, but never actually executing the query.


JBM,


我已经错过了。我仍然是使用VB.net的新手。你能给我一个如何运行查询的例子吗?


谢谢


Doug
JBM,

I''ve missed that. I''m still kind of new to using VB.net. Can you give me an example of how to run the query?

Thank you

Doug


JBM,


ok我已经修改了我的代码:

JBM,

ok I''ve modified my code a bit:

展开 | 选择 | 换行 | 行号


这篇关于显示标签中sql查询的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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