Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
哪种数据类型适合存储地址详细信息?将数据插入此列时如何指定换行符?
我强烈建议您不要将您的地址详细信息存储在单个列中,除非它是从源系统以这种方式提供给您的。
地址详细信息应存储在单独的原子字段中,允许多个地址行、城市、州、邮政编码和 ZIP+4(美国)。这将为您提供最大的灵活性,并在以后需要时使用第三方工具更容易地清理地址信息。
-- To store a CR/LF in Teradata SELECT 'A' || '0D0A'xc || 'B';