Name

Pprint_Addy — 给定一个norm_addy复合类型对象,返回它的漂亮的打印表示。 通常与normalize_address结合使用。

Synopsis

varchar pprint_addy(norm_addy in_addy);

描述

给定一个norm_addy复合类型对象,返回它的漂亮的打印表示。 除了地理编码器打包的数据之外,不需要其他数据。

通常与 Normalize_Address 结合使用。

示例

漂亮地打印一个地址

SELECT pprint_addy(normalize_address('202 East Fremont Street, Las Vegas, Nevada 89101')) As pretty_address;
            pretty_address
---------------------------------------
 202 E Fremont St, Las Vegas, NV 89101
        

漂亮的打印地址地址表

SELECT address As orig, pprint_addy(normalize_address(address)) As pretty_address
        FROM addresses_to_geocode;

                        orig                         |              pretty_address
-----------------------------------------------------+-------------------------------------------
 529 Main Street, Boston MA, 02129                   | 529 Main St, Boston MA, 02129
 77 Massachusetts Avenue, Cambridge, MA 02139        | 77 Massachusetts Ave, Cambridge, MA 02139
 28 Capen Street, Medford, MA                        | 28 Capen St, Medford, MA
 124 Mount Auburn St, Cambridge, Massachusetts 02138 | 124 Mount Auburn St, Cambridge, MA 02138
 950 Main Street, Worcester, MA 01610                | 950 Main St, Worcester, MA 01610

相关信息

Normalize_Address