SQL2005 创建存储过程语句。
来源:百度知道 编辑:UC知道 时间:2024/07/07 01:13:52
我想创建一个储存储过程“A”,请给出具体的语句。
谢谢。
谢谢。
create proc A
(
@name char(6)
)
as
select name from 表名where name=@name
return
create procedure Proc_Selectuser
as
select b.[Type],a.Title,a.Typeid
from dbo.yixiang_newsType as b ,dbo.yixiang_news as a
where b.Typeid=a.Typeid
order by b.typeid,a.newsid
go
create proc a
(
@id int
)
as
select @id
go
Create Proc A
@account nvarchar(50)
as
select * from Img_User where account=@account
return 0