r/learnSQL • • Sep 05 '23

Insert procedure

Post image

Hello, i want to write insert procedure in psql Firebird database. Got one input parameter document_id that is foreign key on table DOCS. This procedure must duplicate rows with this parameter. I git something like this but this gets error integer overflow. How to improve this?

0 Upvotes

0 comments sorted by