mirror of
https://github.com/acedanger/budget-database.git
synced 2025-12-05 22:50:13 -08:00
17 lines
308 B
Transact-SQL
17 lines
308 B
Transact-SQL
use Leo
|
|
go
|
|
|
|
create proc dbo.proc_CreateTransaction (
|
|
@date date, @description varchar(200), @amount decimal(11,2)
|
|
)
|
|
as
|
|
begin
|
|
set @date = isnull(@date, getdate())
|
|
|
|
insert into dbo.BUDGET_DETAIL (TrxDate, TrxDescription, TrxAmount)
|
|
select @date, @description, @amount
|
|
|
|
select SCOPE_IDENTITY()
|
|
end
|
|
go
|