Amigos gostaria de saber como faço pra criar um campo com valor default no
oracle segue abaixo o meu script pra gerar a tabela
Create table TBL_CO_PEDIDOS (
COD_PEDIDO Number (5) NOT NULL ,
DAT_PREVISTA Date NOT NULL ,
DAT_CADASTRO Date Default SYSDATE NOT NULL ,
COD_USUARIO
Ola Anderson, tudo bem.
Faz assim coloca o default na frente do not null e usa com aspas simples.
Como abaixo:
Create table TBL_CO_PEDIDOS (
COD_PEDIDO Number (5) NOT NULL ,
DAT_PREVISTA Date NOT NULL ,
DAT_CADASTRO Date Default SYSDATE NOT NULL ,
COD_USUARIO Number (5) NOT NULL
Alex muito obrigado pela dica vou tentar.
Brigadao.
Em 06/06/07, alex borgmann [EMAIL PROTECTED] escreveu:
Ola Anderson, tudo bem.
Faz assim coloca o default na frente do not null e usa com aspas simples.
Como abaixo:
Create table TBL_CO_PEDIDOS (
COD_PEDIDO Number (5) NOT NULL ,