mirror of
https://github.com/acedanger/budget-database.git
synced 2025-12-06 07:00:14 -08:00
moving to postgres
This commit is contained in:
16
mysql/procedures/proc_CreateTransaction.sql
Normal file
16
mysql/procedures/proc_CreateTransaction.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user