×

Loading...
Ad by
Ad by

soundex

做开发的大哥能谈谈是用什么算法做的嘛?超大数据字典二叉树?

SQL> CREATE TABLE test (name VARCHAR2(15));
Table created.

SQL> insert into test values('Bye');

1 row created.

SQL> insert into test values('By');

1 row created.

SQL> insert into test values('Buy');

1 row created.

SQL> insert into test values('Bike');

1 row created.

SQL> insert into test values('Bie');

1 row created.

SQL> insert into test values('Biiiiiiii');

1 row created.

SQL> commit;

Commit complete.

SQL> select * from test where soundex(name) = soundex('By');

NAME
---------------
Bye
By
Buy
Bie
Biiiiiiii
SQL>
Report

Replies, comments and Discussions:

  • 工作学习 / 专业技术讨论 / soundex
    做开发的大哥能谈谈是用什么算法做的嘛?超大数据字典二叉树?

    SQL> CREATE TABLE test (name VARCHAR2(15));
    Table created.

    SQL> insert into test values('Bye');

    1 row created.

    SQL> insert into test values('By');

    1 row created.

    SQL> insert into test values('Buy');

    1 row created.

    SQL> insert into test values('Bike');

    1 row created.

    SQL> insert into test values('Bie');

    1 row created.

    SQL> insert into test values('Biiiiiiii');

    1 row created.

    SQL> commit;

    Commit complete.

    SQL> select * from test where soundex(name) = soundex('By');

    NAME
    ---------------
    Bye
    By
    Buy
    Bie
    Biiiiiiii
    SQL>
    • jump to http://techrepublic.com.com/5100-9592-5716625.html...i am not busy today..it looks like algorithm.
      • 偶想做一个汉字版本的,看看能否申请一下专利??
        • . you have disclose. no way,
          • 老哥您编程那么牛B,就做一个出来吧,要求如下:
            比如有几个人,名字分别为
            张三
            李四
            黎斯
            李思
            历丝
            王五
            赵六

            要求select * from table where soundex('name')=soundex('李四')
            的返回结果是
            李四
            黎斯
            李思
            历丝


            做出来的这个程序,应该值得几千万吧,好过打一辈子工了
            • 弄个汉字拼音对照表在数据库里不就解决了。还是中文好。
            • 这也太简单了吧, 拼音跟汉字的对照表我94年就用过了。
            • Did you use sound like in database? I did.
            • 这年头缺少的就是IDEA。。。不光是音似,还需要形似。。一项伟大发明?
              有可能和google的搜索功能有的一拼:专查错字,别字

              可以用于论坛搜索、教学科研、人文普查、侦查防暴。。。


              不说了,偶继续给厂里打工了,活命要紧。
    • Google的这篇文章不是很有用吗?http://www.woodpecker.org.cn/diveintopython/performance_tuning/index.html 我没看,现在一看多于50字的文章就头痛