Jump to content
Fórum Script Brasil
  • 0

Geração de tabela



  Gostaria de gerar uma tabela com 11 campos numéricos, os 10 campos iniciais serão digitados pelo usuário e o campo 11 seria a soma dos outros 10 campos.

   è possível fazer isto já na geração da tabela ??  Abaixo a  tabela que eu criei, nela gostaria de adicionar  esta funcionalidade

-- Table: public.colabora

-- DROP TABLE public.colabora;

CREATE TABLE public.colabora
  cpf character(50) NOT NULL,
  nome character(50) NOT NULL,
  entrada numeric(5,2),
  par1 numeric(5,2),
  par2 numeric(5,2),
  par3 numeric(5,2),
  par4 numeric(5,2),
  par5 numeric(5,2),
  par6 numeric(5,2),
  par7 numeric(5,2),
  par8 numeric(5,2),
  par9 numeric(5,2),
  total numeric(6,2),
  celular character(15),
  email character(50),
  CONSTRAINT colabora_pkey PRIMARY KEY (cpf)
ALTER TABLE public.colabora
  OWNER TO postgres;

Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...