成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

CREATE CONVERSION 中文man頁(yè)面

系統(tǒng)
CREATE CONVERSION 定義一種新的編碼轉(zhuǎn)換。 轉(zhuǎn)換的名字可以用在 convert 函數(shù)內(nèi)部聲明特定的編碼轉(zhuǎn)換。 同樣,標(biāo)記為 DEFAULT 的轉(zhuǎn)換可以用于在前端和后端之間的自動(dòng)編碼轉(zhuǎn)換。 出于這個(gè)原因,我們必須定義兩種轉(zhuǎn)換,從編碼 A 到 B 以及從編碼 B 到 A。

NAME

CREATE CONVERSION - 定義一個(gè)用戶定義的碼制轉(zhuǎn)換

SYNOPSIS

CREATE [DEFAULT] CONVERSION name
    FOR source_encoding TO dest_encoding FROM funcname

DESCRIPTION 描述

CREATE CONVERSION 定義一種新的編碼轉(zhuǎn)換。 轉(zhuǎn)換的名字可以用在 convert 函數(shù)內(nèi)部聲明特定的編碼轉(zhuǎn)換。 同樣,標(biāo)記為 DEFAULT 的轉(zhuǎn)換可以用于在前端和后端之間的自動(dòng)編碼轉(zhuǎn)換。 出于這個(gè)原因,我們必須定義兩種轉(zhuǎn)換,從編碼 A 到 B 以及從編碼 B 到 A。


 為了可以創(chuàng)建轉(zhuǎn)換,你必須在函數(shù)上有EXECUTE權(quán)限并且有在目標(biāo)模式上的CREATE權(quán)限。  

PARAMETERS 參數(shù)

DEFAULT
DEFAULT 子句表示這種轉(zhuǎn)換對(duì)于從這種源編碼到目的編碼的情況是缺省的。在一個(gè)模式里每個(gè)編碼對(duì)應(yīng)該只有一個(gè)缺省編碼。
name

 轉(zhuǎn)換的名字。轉(zhuǎn)換名可以用模式修飾。如果沒(méi)有,那么轉(zhuǎn)換就在當(dāng)前模式中定義。轉(zhuǎn)換名在一個(gè)模式里必須***。
source_encoding

 源編碼名。
dest_encoding

 目的編碼名。
funcname

 用于執(zhí)行轉(zhuǎn)換的函數(shù)。這個(gè)函數(shù)名可以用模式名修飾。 如果沒(méi)有,那么將從路徑中找出這個(gè)函數(shù)。


 此函數(shù)必須有如下的樣子:

conv_proc(
    integer,  -- 源編碼 ID
    integer,  -- 目的編碼 ID
    cstring,  -- 源字串(空結(jié)尾的 C 字串)
    cstring,  -- 目的字串(空結(jié)尾的 C 字串)
    integer   -- 源字串長(zhǎng)度
) RETURNS void;

NOTES 注意


 使用 DROP CONVERSION 刪除用戶定義的轉(zhuǎn)換。


 創(chuàng)建轉(zhuǎn)換所需要的權(quán)限可能在未來(lái)的版本中改變。  

EXAMPLES 例子


 用 myfunc 創(chuàng)建一個(gè)從編碼 UNICODE 到 LATIN1 的轉(zhuǎn)換:

CREATE CONVERSION myconv FOR 'UNICODE' TO 'LATIN1' FROM myfunc;

COMPATIBILITY 兼容性

CREATE CONVERSION 是 PostgreSQL 的擴(kuò)展。 在 SQL 標(biāo)準(zhǔn)里沒(méi)有CREATE CONVERSION 語(yǔ)句。  

SEE ALSO 參見(jiàn)

ALTER CONVERSION [alter_conversion(7)], CREATE FUNCTION [create_function(l)], DROP CONVERSION [drop_conversion(l)]  

#p#

NAME

CREATE CONVERSION - define a new conversion

SYNOPSIS

CREATE [DEFAULT] CONVERSION name
    FOR source_encoding TO dest_encoding FROM funcname

DESCRIPTION

CREATE CONVERSION defines a new encoding conversion. Conversion names may be used in the convert function to specify a particular encoding conversion. Also, conversions that are marked DEFAULT can be used for automatic encoding conversion between client and server. For this purpose, two conversions, from encoding A to B and from encoding B to A, must be defined.

To be able to create a conversion, you must have EXECUTE privilege on the function and CREATE privilege on the destination schema.  

PARAMETERS

DEFAULT
The DEFAULT clause indicates that this conversion is the default for this particular source to destination encoding. There should be only one default encoding in a schema for the encoding pair.
name
The name of the conversion. The conversion name may be schema-qualified. If it is not, the conversion is defined in the current schema. The conversion name must be unique within a schema.
source_encoding
The source encoding name.
dest_encoding
The destination encoding name.
funcname
The function used to perform the conversion. The function name may be schema-qualified. If it is not, the function will be looked up in the path.

The function must have the following signature:

conv_proc(
    integer,  -- source encoding ID
    integer,  -- destination encoding ID
    cstring,  -- source string (null terminated C string)
    cstring,  -- destination string (null terminated C string)
    integer   -- source string length
) RETURNS void;

NOTES

Use DROP CONVERSION to remove user-defined conversions.

The privileges required to create a conversion may be changed in a future release.  

EXAMPLES

To create a conversion from encoding UNICODE to LATIN1 using myfunc:

CREATE CONVERSION myconv FOR 'UNICODE' TO 'LATIN1' FROM myfunc;

COMPATIBILITY

CREATE CONVERSION is a PostgreSQL extension. There is no CREATE CONVERSION statement in the SQL standard.  

SEE ALSO

ALTER CONVERSION [alter_conversion(7)], CREATE FUNCTION [create_function(l)], DROP CONVERSION [drop_conversion(l)]

責(zé)任編輯:韓亞珊 來(lái)源: CMPP.net
相關(guān)推薦

2011-08-24 14:13:27

DROP CONVER中文man

2011-08-24 09:14:47

alter_conve中文man

2011-08-24 10:46:36

CREATE AGGR中文man

2011-08-24 11:15:24

CREATE INDE中文man

2011-08-24 13:29:20

CREATE TABL中文man

2011-08-24 13:36:25

CREATE TRIG中文man

2011-08-24 13:43:09

CREATE USER中文man

2011-08-24 13:46:39

CREATE VIEW中文man

2011-08-24 13:32:56

CREATE TABL中文man

2011-08-24 10:59:19

CREATE DATA中文man

2011-08-24 11:02:11

CREATE DOMA中文man

2011-08-24 11:05:36

CREATE FUNC中文man

2011-08-24 11:10:17

CREATE GROU中文man

2011-08-24 11:18:53

CREATE LANG中文man

2011-08-24 11:23:20

CREATE OPER中文man

2011-08-24 11:31:47

CREATE RULE中文man

2011-08-24 13:23:10

CREATE SCHE中文man

2011-08-24 13:26:19

CREATE SEQU中文man

2011-08-24 13:39:44

CREATE TYPE中文man

2011-08-24 10:53:20

CREATE CONS中文man
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)

主站蜘蛛池模板: 国产高清一区二区三区 | 成人免费xxxxx在线视频 | 国产精品1区2区3区 一区中文字幕 | 亚洲一区二区三区在线免费观看 | 亚洲久久久 | 午夜爽爽爽男女免费观看影院 | 亚洲aⅴ精品 | 国产精品一区二区三区在线 | 一级a性色生活片久久毛片波多野 | 中文字幕黄色大片 | 亚洲在线 | 午夜影院黄 | 涩涩视频在线观看 | 91麻豆精品国产91久久久久久 | 国产探花在线精品一区二区 | 久久久久中文字幕 | 久久久久亚洲国产| 三级视频国产 | 国产亚洲精品久久19p | 亚洲一区 中文字幕 | 自拍 亚洲 欧美 老师 丝袜 | а√中文在线8 | 色天天综合| 欧美日韩国产在线观看 | 国产精品毛片一区二区三区 | 日本免费黄色一级片 | 欧美日韩成人影院 | 国产欧美日韩二区 | 久久久久久国产精品免费免费男同 | 天天天操天天天干 | 亚洲一区二区三区视频免费观看 | 欧美日韩国产传媒 | 日韩色在线 | 欧美freesex黑人又粗又大 | 国产精品一区二区不卡 | 四虎在线观看 | 99精品欧美一区二区三区综合在线 | 99精品国产一区二区青青牛奶 | 亚洲毛片 | 国产成人一区二区三区 | 日韩毛片免费看 |