/*存储过程Pr_GetVotes */
create proc Pr_GetVotes
AS
select *
from Votes
order by VoteID/* 存储过程Pr_GetSingleVote*/
create proc Pr_GetSingleVote
(
@VoteID int
)
AS
select Votes.*
from Votes
where VoteID = @VoteID/*存储过程Pr_AddVote*/
create proc Pr_AddVote
(
@Item varchar(100)
)
AS
insert into
Votes(Item,ItemCount)
Values(@Item,0)
return @@Identity/*存储过程Pr_UpdateVote*/
create proc Pr_UpdateVote
(
@VoteID int
)
AS
Update Votes
set VoteCount = VoteCount + 1
where VoteID = @VoteID/*存储过程Pr_DeleteVote*/
create proc Pr_DeleteVote
(
@VoteID = int
)
AS
delete Votes
where VoteID = @VoteID是一个在线投票系统的数据库中创建存储过程
create proc Pr_GetVotes
AS
select *
from Votes
order by VoteID/* 存储过程Pr_GetSingleVote*/
create proc Pr_GetSingleVote
(
@VoteID int
)
AS
select Votes.*
from Votes
where VoteID = @VoteID/*存储过程Pr_AddVote*/
create proc Pr_AddVote
(
@Item varchar(100)
)
AS
insert into
Votes(Item,ItemCount)
Values(@Item,0)
return @@Identity/*存储过程Pr_UpdateVote*/
create proc Pr_UpdateVote
(
@VoteID int
)
AS
Update Votes
set VoteCount = VoteCount + 1
where VoteID = @VoteID/*存储过程Pr_DeleteVote*/
create proc Pr_DeleteVote
(
@VoteID = int
)
AS
delete Votes
where VoteID = @VoteID是一个在线投票系统的数据库中创建存储过程
解决方案 »
- 求助 mshtml IHTMLElement 等指针问题。。。
- C# 连接 Oracle 的奇怪问题
- 类似csdn中top的效果
- 关于DataGrid的数据绑定的问题
- 请问这样的功能怎么实现?
- 关于UpdatePanel和ListBox的SelectedIndexChanged事件
- C# 如何中ffmpeg将指定文件夹中的图片转换为视频
- 请问怎么在ArcGIS Engine 往Polygon类型的图元内填充颜色?急急急!!!
- 一个SendMail问题
- SECURITY POLICY
- 如何在可以在窗体中移动象棋棋子图片(如一些游戏一样),同时棋子图片周围出现兰色框线?
- 输入两个整数n和m,从数列1,2,3.......n 中 随意取几个数,使其和等于 m ,要求将其中所有的可能组合列出来.编程求解。
服务器: 消息 137,级别 15,状态 1,过程 Pr_GetVotes,行 16
必须声明变量 '@VoteID'。
服务器: 消息 137,级别 15,状态 1,过程 Pr_GetVotes,行 26
必须声明变量 '@Item'。
服务器: 消息 156,级别 15,状态 1,过程 Pr_GetVotes,行 30
在关键字 'proc' 附近有语法错误。
服务器: 消息 137,级别 15,状态 1,过程 Pr_GetVotes,行 37
必须声明变量 '@VoteID'。
服务器: 消息 137,级别 15,状态 1,过程 Pr_GetVotes,行 46
必须声明变量 '@VoteID'。
create proc Pr_GetVotes
ASselect *
from Votes
order by VoteIDgo
/* 存储过程Pr_GetSingleVote*/
create proc Pr_GetSingleVote
( @VoteID int)
AS
select Votes.*
from Votes
where VoteID = @VoteIDgo
/*存储过程Pr_AddVote*/
create proc Pr_AddVote
(
@Item varchar(100)
)
AS
insert into
Votes(Item,ItemCount)
Values(@Item,0)
return @@Identity
go/*存储过程Pr_UpdateVote*/
create proc Pr_UpdateVote
(
@VoteID int
)
AS
Update Votes
set VoteCount = VoteCount + 1
where VoteID = @VoteIDgo/*存储过程Pr_DeleteVote*/
create proc Pr_DeleteVote
(
@VoteID int
)
AS
delete Votes
where VoteID = @VoteID