Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
3| Name | Data Type | Length | Description |
|---|---|---|---|
| @accion | varchar | 20 | |
| @id_score | int | 4 | |
| @valor | decimal | 5 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.score_aportes_
@accion varchar(20) = 'select',
@id_score int = null,
@valor decimal(5,2) = null
AS
BEGIN
SET NOCOUNT ON;
if (@accion = 'select')
begin
select campo,mes_para_atras, resultado, valor, id_score from score_aportes order by id_score
return
end
if (@accion = 'update')
begin
update score_aportes
set
valor = @valor
where id_score = @id_score
return
end
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.score_aportes_
@accion varchar(20) = 'select',
@id_score int = null,
@valor decimal(5,2) = null
AS
BEGIN
SET NOCOUNT ON;
if (@accion = 'select')
begin
select campo,mes_para_atras, resultado, valor, id_score from score_aportes order by id_score
return
end
if (@accion = 'update')
begin
update score_aportes
set
valor = @valor
where id_score = @id_score
return
end
END
GO
Depends On
1Used By
No items found