CNEFE: mudanças entre as edições

Linha 27: Linha 27:
-----
-----
shp2pgsql  log | psql -q postgres://postgres@localhost/poa
shp2pgsql  log | psql -q postgres://postgres@localhost/poa
</pre>
Melhorando os dados:
<pre>
drop view if exists vw01_log ;
create view vw01_log as select *, regexp_replace( coalesce(nm_tip_log,'') || ' '||  coalesce(nm_tit_log,'') ||' '|| coalesce(nm_log,''), '\s+', ' ', 'g') as via_name from log;
select gid, cd_setor, cd_quadra, cd_face, via_name, tot_res from vw01_log limit 100;
</pre>
</pre>


2 402

edições