shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remover caracter do texto


From: weberlf
Subject: Re: Remover caracter do texto
Date: Wed, 14 Dec 2005 11:05:00 -0000
User-agent: eGroups-EW/0.82

>       sed '/,$/ {
>               N;
>               s/,\n *);/\n);/
>       }'

 Humberto 

   No exemplo abaixo que enviei funcionou beleza.

> > 
> > CREATE TABLE tmor_1212_cred_agreg (
> >     seq_ctrc integer NOT NULL,
> >     tp_credito character(1) NOT NULL,
> >     placa_agreg character(7) NOT NULL,
> >     data_baixa date NOT NULL,
> >     vlr_credito numeric(9,2) NOT NULL,
> >     seq_ficha_frete integer NOT NULL,
> >     vlr_credito_orig numeric(9,2) NOT NULL,
> >     data_inclusao date,
> >     hora_inclusao time without time zone,
> > );
> > 

   Mas neste exemplo abaixo nao funcionou

CREATE TABLE tmor_1412_custo_exprec (
    cod_emp smallint NOT NULL,
    cod_fil smallint NOT NULL,
    seq_ctrc integer NOT NULL,
    fg_tipo character(1) NOT NULL,
    vlr_icms numeric(8,2) NOT NULL,
    vlr_cofins numeric(8,2) NOT NULL,
    vlr_pedagio numeric(8,2) NOT NULL,
    vlr_transf numeric(8,2) NOT NULL,
    vlr_transb numeric(8,2) NOT NULL,
    vlr_recepcao numeric(8,2) NOT NULL,
    perc_comi numeric(4,2) NOT NULL,
    data_inclusao date,
    vlr_peso numeric(8,2) NOT NULL,
    vlr_min numeric(8,2) NOT NULL,
);

  Não querendo abusar, poderia me explicar o comando
utilizado no primeiro caso ?

Weber






reply via email to

[Prev in Thread] Current Thread [Next in Thread]