Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BootcampWebDia6
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cesar Giulano Gonzalez Maqueda
BootcampWebDia6
Commits
0d2ad44a
Commit
0d2ad44a
authored
Oct 22, 2021
by
Cesar Giulano Gonzalez Maqueda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setting
parent
e52efc63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/trigger.sql
+4
-5
No files found.
src/trigger.sql
View file @
0d2ad44a
...
...
@@ -35,11 +35,10 @@ CREATE function insert_old_inventory() RETURNS trigger AS $insert_old_inventory$
END
;
$
insert_old_inventory
$
LANGUAGE
plpgsql
;
CREATE
trigger
if
not
exists
insert_old_inventory
AFTER
UPDATE
ON
inventory
FOR
EACH
ROW
EXECUTE
FUNCTION
insert_old_inventory
();
CREATE
trigger
insert_old_inventory
AFTER
UPDATE
ON
inventory
FOR
EACH
ROW
EXECUTE
FUNCTION
insert_old_inventory
();
---Test
update
inventory
set
store_id
=
2
where
inventory_id
=
1
;
select
*
from
inventory
i2
where
inventory_id
=
2
select
*
from
registro_inventory
\ No newline at end of file
select
*
from
inventory
i2
where
inventory_id
=
2
;
select
*
from
registro_inventory
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment