完整版的汉字转拼音函数,支持全部转拼音和仅取首字母。
CREATE OR REPLACE TYPE spell_code AS OBJECT
(
spell varchar2(10),
code Varchar2(10)
);
/
-------------Create Table Type
CREATE OR REPLACE TYPE t_spellcode AS TABLE OF spell_code;
/
--------------字典函数:
create or replace function f_getSpellcode return t_spellcode Pipelined
is
Begin
PIPE Row(spell_code('a', -20319));
PIPE Row(spell_code('ai', -20317));
PIPE Row(spell_code('an', -20304));
PIPE Row(spell_code('ang', -20295));
PIPE Row(spell_code('ao', -20292));
PIPE Row(spell_code('ba', -20283));
PIPE Row(spell_code('bai', -20265));
PIPE Row(spell_code('ban', -20257));
PIPE Row(spell_code('bang', -20242));
PIPE Row(spell_code('bao', -20230));
PIPE Row(spell_code('bei', -20051));
PIPE Row(spell_code('ben', -20036));
PIPE Row(spell_code('beng', -20032));
PIPE Row(spell_code('bi', -20026));
PIPE Row(spell_code('bian', -20002));
PIPE Row(spell_code('biao', -19990));
PIPE Row(spell_code('bie', -19986));
PIPE Row(spell_code('bin', -19982));
PIPE Row(spell_code('bing', -19976));
PIPE Row(spell_code('bo', -19805));
PIPE Row(spell_code('bu', -19784));
PIPE Row(spell_code('ca', -19775));
PIPE Row(spell_code('cai', -19774));
PIPE Row(spell_code('can', -19763));
PIPE Row(spell_code('cang', -19756));
PIPE Row(spell_code('cao', -19751));
PIPE Row(spell_code('ce', -19746));
PIPE Row(spell_code('ceng', -19741));
PIPE Row(spell_code('cha', -19739));
PIPE Row(spell_code('chai', -19728));
PIPE Row(spell_code('chan', -19725));
PIPE Row(spell_code('chang', -19715));
PIPE Row(spell_code('chao', -19540));
PIPE Row(spell_code('che', -19531));
PIPE Row(spell_code('chen', -19525));
PIPE Row(spell_code('cheng', -19515));
PIPE Row(spell_code('chi', -19500));
PIPE Row(spell_code('chong', -19484));
PIPE Row(spell_code('chou', -19479));
PIPE Row(spell_code('chu', -19467));
PIPE Row(spell_code('chuai', -19289));
PIPE Row(spell_code('chuan', -19288));
PIPE Row(spell_code('chuang', -19281));
PIPE Row(spell_code('chui', -19275));
PIPE Row(spell_code('chun', -19270));
PIPE Row(spell_code('chuo', -19263));
PIPE Row(spell_code('ci', -19261));
PIPE Row(spell_code('cong', -19249));
PIPE Row(spell_code('cou', -19243));
PIPE Row(spell_code('cu', -19242));
PIPE Row(spell_code('cuan', -19238));
PIPE Row(spell_code('cui', -19235));
PIPE Row(spell_code('cun', -19227));
PIPE Row(spell_code('cuo', -19224));
PIPE Row(spell_code('da', -19218));
PIPE Row(spell_code('dai', -19212));
PIPE Row(spell_code('dan', -19038));
PIPE Row(spell_code('dang', -19023));
PIPE Row(spell_code('dao', -19018));
PIPE Row(spell_code('de', -19006));
PIPE Row(spell_code('deng', -19003));
PIPE Row(spell_code('di', -18996));
PIPE Row(spell_code('dian', -18977));
PIPE Row(spell_code('diao', -18961));
PIPE Row(spell_code('die', -18952));
PIPE Row(spell_code('ding', -18783));
PIPE Row(spell_code('diu', -18774));
PIPE Row(spell_code('dong', -18773));
PIPE Row(spell_code('dou', -18763));
PIPE Row(spell_code('du', -18756));
PIPE Row(spe
oracle将汉字转换为拼音_IT/计算机_专业资料。通过oracle数据库编写一个函数,将汉字转换为拼音,适用于一些字典文件的助记码的转换。...
oracle中文字符转换拼音_计算机软件及应用_IT/计算机_专业资料。oracle中文字符转换拼音该函数利用了 oracle 提供的 NLSSORT,具有以下特点: 1. 不需要中文字库 2. ...
oracle完整汉字转拼音函... 6页 1下载券 汉字转拼音首字母 2页 免费...2009-08-07 ORACLE函数获取汉字拼音首字母 /*---增加:yl--*/ oracle 中 NLSSORT...
怎样将 Oracle 的外部表汉字转换为拼 音 来的应用中使用代码表加一个函数来处理汉字转拼音的转换问题,现在由于工作需要必须将汉字转换为拼音,我使用了外部表来实现...
汉字转拼音函数(超级实用)_计算机软件及应用_IT/计算机_专业资料。将EXCEL中的C列的汉字替换为需要转换的文字,D列将自动计算出各种不同格式的拼音。...
Pipelined is /* x代码转换代码函数:Get_Spellcode(null) By Wangqi from Internet 2010-11-15 用处:返回拼音与ASCII码的对应关系,用于将汉字转换成拼音。 ...
汉字转拼音函数_数学_自然科学_专业资料。汉字转拼音函数,资源免费,大家分享!--创建函数 IF OBJECT_ID('[fn_GetPinyin]') IS NOT NULL DROP FUNCTION [fn_...
ORACLE写一函数,准确地判... 8页 1下载券 汉字首字母函数 2页 免费 oracle完整汉字转拼音函... 6页 1下载券喜欢此文档的还喜欢...
Oracle10g实现把汉字转换成汉语拼音首字母_工学_高等教育_教育专区。--Oracle...创建函数使用java类 CREATE OR REPLACE function F_HZ2PY(name varchar2) return...
汉字转拼音函数_IT/计算机_专业资料。vba 自定义函数汉字转拼音函数:HZQP() expression 必需的。包含要转换的字符串。 Delimiter 可选的。用于标识分隔拼音的字符...
热门文档