Re: Bug of psql meta-command \sf & \sv
От | Japin Li |
---|---|
Тема | Re: Bug of psql meta-command \sf & \sv |
Дата | |
Msg-id | MEYP282MB16690BF5E7B144B6EF610897B6C2A@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM обсуждение исходный текст |
Ответ на | Re: Bug of psql meta-command \sf & \sv ("咸�9�5" <2437705447@qq.com>) |
Список | pgsql-bugs |
On Wed, 27 Sep 2023 at 20:35, 咸🐟 <2437705447@qq.com> wrote: > https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS > I don't think this meets the documentation's definition of an identifier. Semicolons should not be used this wayhere.(Excuse me, I need to test the email function.) > In PostgreSQL, quoted identifiers can contain any character, except the character with code zero. For example: postgres=# CREATE table "<>!@#$%^&*()" ("*&-=+" int, "?>.,\/" text); CREATE TABLE postgres=# \d "<>!@#$%^&*()" Table "public.<>!@#$%^&*()" Column | Type | Collation | Nullable | Default --------+---------+-----------+----------+--------- *&-=+ | integer | | | ?>.,\/ | text | | | postgres=# INSERT INTO "<>!@#$%^&*()" VALUES (1, 'hello world'); INSERT 0 1 postgres=# SELECT * FROM "<>!@#$%^&*()"; *&-=+ | ?>.,\/ -------+------------- 1 | hello world (1 row) -- Regrads, Japin Li ChengDu WenWu Information Technology Co., Ltd.
В списке pgsql-bugs по дате отправления: