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

CREATE CONVERSION 中文man頁面

系統
CREATE CONVERSION 定義一種新的編碼轉換。 轉換的名字可以用在 convert 函數內部聲明特定的編碼轉換。 同樣,標記為 DEFAULT 的轉換可以用于在前端和后端之間的自動編碼轉換。 出于這個原因,我們必須定義兩種轉換,從編碼 A 到 B 以及從編碼 B 到 A。

NAME

CREATE CONVERSION - 定義一個用戶定義的碼制轉換

SYNOPSIS

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

DESCRIPTION 描述

CREATE CONVERSION 定義一種新的編碼轉換。 轉換的名字可以用在 convert 函數內部聲明特定的編碼轉換。 同樣,標記為 DEFAULT 的轉換可以用于在前端和后端之間的自動編碼轉換。 出于這個原因,我們必須定義兩種轉換,從編碼 A 到 B 以及從編碼 B 到 A。


 為了可以創建轉換,你必須在函數上有EXECUTE權限并且有在目標模式上的CREATE權限。  

PARAMETERS 參數

DEFAULT
DEFAULT 子句表示這種轉換對于從這種源編碼到目的編碼的情況是缺省的。在一個模式里每個編碼對應該只有一個缺省編碼。
name

 轉換的名字。轉換名可以用模式修飾。如果沒有,那么轉換就在當前模式中定義。轉換名在一個模式里必須***。
source_encoding

 源編碼名。
dest_encoding

 目的編碼名。
funcname

 用于執行轉換的函數。這個函數名可以用模式名修飾。 如果沒有,那么將從路徑中找出這個函數。


 此函數必須有如下的樣子:

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

NOTES 注意


 使用 DROP CONVERSION 刪除用戶定義的轉換。


 創建轉換所需要的權限可能在未來的版本中改變。  

EXAMPLES 例子


 用 myfunc 創建一個從編碼 UNICODE 到 LATIN1 的轉換:

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

COMPATIBILITY 兼容性

CREATE CONVERSION 是 PostgreSQL 的擴展。 在 SQL 標準里沒有CREATE CONVERSION 語句。  

SEE ALSO 參見

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)]

責任編輯:韓亞珊 來源: CMPP.net
相關推薦

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
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 国产精品精品视频一区二区三区 | 国产欧美日韩在线观看 | 美国十次成人欧美色导视频 | 国产日韩精品视频 | 国产精品福利一区二区三区 | 日本人爽p大片免费看 | 18性欧美 | 91视视频在线观看入口直接观看 | 最近中文字幕免费 | 亚洲欧美在线观看 | 国产精品一区二区三区免费观看 | 精品久久久网站 | 精品国产一区二区三区四区在线 | 亚洲视频在线一区 | 日本不卡一区二区三区在线观看 | 久久亚洲欧美日韩精品专区 | 日韩精品一区二区三区四区视频 | 亚洲精品美女在线观看 | 色毛片| 亚洲国产中文字幕 | 国产精品美女久久久久aⅴ国产馆 | 国产乱码精品一区二区三区五月婷 | 色香蕉在线 | 久久亚洲欧美日韩精品专区 | 成人免费黄色片 | 精品欧美色视频网站在线观看 | 亚洲欧美日韩久久久 | 国产视频欧美 | 国产乱码精品一区二三赶尸艳谈 | 国产欧美一区二区三区在线播放 | 99视频在线 | 日韩二三区| 久久机热 | 久久久久久网站 | 国产在线精品一区二区 | 久久成人国产精品 | avav在线看| a视频在线| 中文字幕日韩欧美一区二区三区 | 日韩欧美中文字幕在线观看 | 国产精品免费小视频 |