在Visual Basic .NET 2005中管理SQL [英] Managing SQL in Visual Basic .NET 2005

查看:53
本文介绍了在Visual Basic .NET 2005中管理SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有SQL Server 2005数据库,我想在SQL select语句中放入动态日期.

I have SQL server 2005 Database and I want to put dynamic date inside the SQL select statement. How to do this ?

推荐答案

您可能要使select语句成为存储过程,以便它接受要使用的日期,然后这样调用它用VB代码编写SQL的代码.
You probably wnat to make the select statement a stored procedure, so that it accepts a date to use, and then call it as such instead of writing SQL in your VB code.


这篇关于在Visual Basic .NET 2005中管理SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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