Redian新闻
>
Re: [转载] stored procedure 菜鸟一问, PLEASE HELP,在线等
avatar
Re: [转载] stored procedure 菜鸟一问, PLEASE HELP,在线等# DotNet - 窗口里的风景
st
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 @[email protected]@ROWCOUNT, which is 1, :D
avatar
j*s
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 @[email protected]@ROWCOUNT, which is 1, :D

avatar
st
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,

avatar
j*s
4
Thanks, I got it, :-)

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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。