sql 试图操作问题
SQL2008的试图可不可以传变量,像存储过程那样
不可以.使用表值函数.
表值函数??
什么意思
那我要加条件怎 么办
http://blog.csdn.net/fredrickhu/archive/2009/09/23/4583130.aspx
表值函数
相关问答:
with adod_dict do
begin
close;
commandtext:='select bgqxcode,count(*) wjsl from wscl_wsda_file where wjnd=:tnd group by bgqxcode'; ......
两种错误:
1.如果我这样申明:ResultSet rs;错误提示如下:
An error occurred at line: 51 in the jsp file: /index.jsp
The local variable rs may not have been initialized
48: ......
PB中开发的。
DateTime startTime=DateTime(em_1.Text)
DateTime endTime=DateTime(em_2.Text)
string sql
sql = dw_1.GetSQLSelect()+"Where (StartTime> '"+startTime+&q ......
我的语句为str1.Format("UPDATE wz set title='%s',class='%s',nr='%s',[date]='%s' WHERE num='%d'",
m_bt, strTemp, fromClipboard, time5,m_num);
......
表A 内 有id 和 name
希望根据A表的name进行查询,但是name可能会重复,所以需要判断.
有一个sql函数 f ,它的参数是A表的id字段,返回一个值.
我希望最后得到一个表,包含id name 和[最后函数f返回 ......