0

There is an entry for creating a database:

create table stack.Accounts
(
   row_id int GENERATED ALWAYS AS IDENTITY ,
   parent_id int,                         -- row_id родительской записи
   number int,                            -- Номер лицевого счета
   type int,                              -- Тип записи (1 - Дом, 2- Квартира, 3 - Лицевой счет)

   constraint PK_Accounts
      primary key (row_id),
   constraint FK_Accounts_Folder 
      foreign key (parent_id) 
      references stack.Accounts(row_id)
      on delete no action
      on update no action
);

but I don't understand what "stack" means?

I didn't find any help information.

1 Answer 1

0

stack is a so called schema. With create table stack.Accounts you are creating a table in the schema stack.

More inforamtion about schma can be found here for example psql docs schema

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.