Re: nvarchar notation accepted?

Поиск
Список
Период
Сортировка
От Takahiro Itagaki
Тема Re: nvarchar notation accepted?
Дата
Msg-id 20100514121309.A450.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на nvarchar notation accepted?  (Jaime Casanova <jaime@2ndquadrant.com>)
Ответы Re: nvarchar notation accepted?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: nvarchar notation accepted?  (Jaime Casanova <jaime@2ndquadrant.com>)
Список pgsql-hackers
Jaime Casanova <jaime@2ndquadrant.com> wrote:

> i migrate a ms sql server database to postgres and was trying some
> queries from the application to find if everything works right...
> when i was looking to those queries i found some that has a notation
> for nvarchar (ej: campo = N'sometext')

Do you have documentation for N'...' literal in SQLServer?
Does it mean unicode literal? What is the difference from U& literal?
http://developer.postgresql.org/pgdocs/postgres/sql-syntax-lexical.html

PostgreSQL doesn't have nvarchar types (UTF16 in MSSQL), and only
have mutlti-tyte characters. So I think you can remove N and just
use "SET client_encoding = UTF8" in the cases.

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center




В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: List traffic
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_upgrade code questions