由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - Re: [转载] stored procedure 菜鸟一问, PLEASE HELP,在线等
相关主题
这个SQL Reporting Service很cool吗。笨笨一问:请问Visual Studios.NET和Visual Studio 2003/2005什么关系啊?
一个简单的REMOTE DESKTOPazure一问
诚心请教:如果有点vb&c++基础,学vb .net要多久Got some side projects that needs help
anyone knows why this is?请教VB.net中如何取得Oracle Error code
baozi for help a simple way C# programHow to Call Stored Procedure in C# .Net?
痛苦IT大妈求助如何从一个Stored Procedure中实时返回运行信息
问一个ASP.NET界面的问题,诚恳一问,谢谢!code generation
ActiveX一问好像NHibernate很popular。。。。。。
相关话题的讨论汇总
话题: procedure话题: user1话题: count话题: stored话题: 一问
进入DotNet版参与讨论
1 (共1页)
st
发帖数: 1685
1
of course, try that in your sql analyzer first,
select count(*) from user1 will return a number for the count(*)
that's one row, so you will get @num=@@ROWCOUNT, which is 1, :D
j****s
发帖数: 34
2
Thank you so much!
In fact, there are 7 records in the table.
select count(*) from user1;
it will show 7.
So how can I set 7 to @num?
thanks

copy
procedure,

【在 st 的大作中提到】
: of course, try that in your sql analyzer first,
: select count(*) from user1 will return a number for the count(*)
: that's one row, so you will get @num=@@ROWCOUNT, which is 1, :D

st
发帖数: 1685
3
select @num=count(*) from user1
this is rather a sql question instead of C# question. :D

【在 j****s 的大作中提到】
: Thank you so much!
: In fact, there are 7 records in the table.
: select count(*) from user1;
: it will show 7.
: So how can I set 7 to @num?
: thanks
:
: copy
: procedure,

j****s
发帖数: 34
4
Thanks, I got it, :-)

【在 st 的大作中提到】
: select @num=count(*) from user1
: this is rather a sql question instead of C# question. :D

1 (共1页)
进入DotNet版参与讨论
相关主题
好像NHibernate很popular。。。。。。baozi for help a simple way C# program
question: Any benefits for C#程序中写CLR存储过程Writing CLR Stored Procedures in C# ?痛苦IT大妈求助
新手举手提问问一个ASP.NET界面的问题,诚恳一问,谢谢!
nhibernate, ado.net比stored procedure执行数据库操作快吗?ActiveX一问
这个SQL Reporting Service很cool吗。笨笨一问:请问Visual Studios.NET和Visual Studio 2003/2005什么关系啊?
一个简单的REMOTE DESKTOPazure一问
诚心请教:如果有点vb&c++基础,学vb .net要多久Got some side projects that needs help
anyone knows why this is?请教VB.net中如何取得Oracle Error code
相关话题的讨论汇总
话题: procedure话题: user1话题: count话题: stored话题: 一问