由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - stored procedure 菜鸟一问, PLEASE HELP,在线等
相关主题
SQL server stored procedure 求助怎末优化一个stored procedure ?
SQL debug step into a store procedure from another one (转载)请推荐关于Stored Procedure的书
Stored Procedure?Can I use array in SQL stored procedure?
如何分析Stored Procedure运行时间过长?Help: stored procedure in oracle
how can i execute pl/sql (or stored procedure) in java??问一个crystal report的问题
[转载] intensive I/O and odbc problemWhy does this Stored procedure fail ?
stored procedure help Please.....请教:how to call a COM object in a stored procedure?
Stored Procedure / Trigger - 谢谢请各位帮我看看这个最简单的Stored Procedure (转载)
相关话题的讨论汇总
话题: stored话题: procedure话题: select话题: num话题: rowcount
进入Database版参与讨论
1 (共1页)
j****s
发帖数: 34
1
I want to know how many records existing in the database.
In sql, it is
select count(*) from customer;
But I do not know how to get it in stored procedure.
CREATE proc countcustom @num Int output
as
select count(*) from user1
select @num = @@ROWCOUNT
return
GO
But num is always 1, since I do not know the meaning of @@ROWCOUNT, ( I copy
from other examples, :-()
I wonder somebody can help me, also is there any document or tutorai for
stored procedure? I do not quite understand the grammar o
D****N
发帖数: 430
2
SELECT @num = (SELECT COUNT(*) FROM user1)

【在 j****s 的大作中提到】
: I want to know how many records existing in the database.
: In sql, it is
: select count(*) from customer;
: But I do not know how to get it in stored procedure.
: CREATE proc countcustom @num Int output
: as
: select count(*) from user1
: select @num = @@ROWCOUNT
: return
: GO

1 (共1页)
进入Database版参与讨论
相关主题
请各位帮我看看这个最简单的Stored Procedure (转载)how can i execute pl/sql (or stored procedure) in java??
再请教一个问题:stored procedure能不能直接显示信息什么的? (转载)[转载] intensive I/O and odbc problem
Stored Procedure的Is和As有什么区别,还有 ······stored procedure help Please.....
如何从一个Stored Procedure中实时返回运行信息Stored Procedure / Trigger - 谢谢
SQL server stored procedure 求助怎末优化一个stored procedure ?
SQL debug step into a store procedure from another one (转载)请推荐关于Stored Procedure的书
Stored Procedure?Can I use array in SQL stored procedure?
如何分析Stored Procedure运行时间过长?Help: stored procedure in oracle
相关话题的讨论汇总
话题: stored话题: procedure话题: select话题: num话题: rowcount