🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.databases.ingres
1 messages
1 total messages Started by ars_mgr@nhqvax.h Tue, 16 Aug 2016 14:20
Stored Procedures Question
#3747
Author: ars_mgr@nhqvax.h
Date: Tue, 16 Aug 2016 14:20
29 lines
866 bytes
When storing a procedure in INGRES, the DBMS identifies tables with the
user prefix.  I.E.:

CREATE PROCEDURE ABC AS
BEGIN
    INSERT INTO xyz (a,b,c) VALUES (1,2,3);
END;

turns into

CREATE PROCEDURE ABC AS
BEGIN
    INSERT INTO 'my_userid'.xyz (a,b,c) VALUES (1,2,3);
END;

when it is stored in the database.  'Help procedure ABC' shows this.
I don't know why INGRES does this because procedures are not removed
when underlying tables are (as in the case of views).

What I would like is for procedure ABC to insert into the XYZ table
owned by user 'n'.  I.e., every user will have a table XYZ.

Can anyone shed some light on this?

--
David L. Tondreau, Jr. |   ars_mgr@nhqvax.hq.nasa.gov    | Don't "Just do it."
Managing Consultant    | d_tondreau@aeromail.hq.nasa.gov | Do it right.
LCT, Inc.              |        (202) 554-0115           | The first time.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads