- This topic has 1 reply, 2 voices, and was last updated 2 years, 5 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Fórum Banco de Dados e Linguagem SQL com PostgreSQL › criação de tabela
galera, ao criar a tabela cliente eu vacilei de não colocar o campo data_nascimento, e ao fazer isso depois, na hora de inserir os dados, o postgree tá me apresentando o erro: ERROR: column “data_nascimento” of relation “cliente” does not exist LINE 1: insert into cliente (idcliente, nome, cpf, rg, data_nascimen… ^ SQL state: 42703 Character: 48.
como faço pra corrigir isso?
Olá Naelson, tente o código abaixo:
ALTER TABLE cliente ADD COLUMN data_nascimento DATE;
Fabio