How many address fields would you use for a UK database?

前端 未结 7 2054
南笙
南笙 2020-12-15 23:53

Address records are probably used in most database, but I\'ve seen a number of slightly different sets of fields used to store them. The number of fields seems to vary from

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-16 00:12

    Premises elements

    • Sub Building Name
    • Building Name
    • Building Number
    • Organisation Name
    • Department Name
    • PO Box Number

    Thoroughfare elements

    • Dependent Thoroughfare Name
    • Dependent Thoroughfare Descriptor
    • Thoroughfare Name
    • Thoroughfare Descriptor

    Locality elements

    • Double Dependent Locality
    • Dependent Locality
    • Post Town

    Postcode element

    • Postcode

    This answer may be a few years late, but it's aimed at those like myself looking for guidance on how to correctly format postal addresses for both storing in a database (or the likes of it) and for printing purposes.


    Taken from Royal Mail Doc, link below - conveniently titled the 'Programmers Guide'

    • Technical specififcation for users of PAF

    Page 27 - 42 was most helpful for me.

提交回复
热议问题