Answers for "jav"

0

jav

038e8bfc5278839f5abf1850aa91582fb6e5b93d64dbc64f0838c66e8ffad22c *xmrig-6.6.2-bionic-x64.tar.gz
d14321fdd4531d1a38ecc6c7f1b153cfa5be5e3daa75fddce2fa88c23e98c29b *xmrig-6.6.2-focal-x64.tar.gz
16083a8b2bb1686c75712721cf497b7775c1b34b3b8ec98060d9ae425a5c70ca *xmrig-6.6.2-freebsd-static-x64.tar.gz
bad174e0e2184910948ee87b3e7c4ea5fed35c597626a41d5cd6a5e4b3bc4d2c *xmrig-6.6.2-linux-static-x64.tar.gz
736c478a542c201cd614f1027a92e09bb453adfd9ef3e849eaf6d6a10c54e266 *xmrig-6.6.2-linux-x64.tar.gz
66daf3f0fd401832b965d349789c6f422cc7291f6bdc8b4af830b8a563354048 *xmrig-6.6.2-macos-x64.tar.gz
1b740cec9ab5febe89070c7ac9a18f77b982f367a9994f2a910e1d4a4e577d28 *xmrig-6.6.2-gcc-win64.zip
c7952481e996cb3edde5a097fcac3db0f8b04522817ee3c7aa7ca784a5f62fb8 *xmrig-6.6.2-msvc-cuda10_2-win64.zip
9b8b2b1d49b148d138776d25aa1d9586ae0f7d97a29ce2728a3f029deca499c8 *xmrig-6.6.2-msvc-win64.zip
Posted by: Guest on May-03-2021
0

jav

drop function if exists soundex_match;
delimiter $$
create function soundex_match (needle varchar(128), haystack text, splitChar varchar(1)) returns tinyint
  deterministic
  begin
    declare spacePos int;
    declare searchLen int default length(haystack);
    declare curWord varchar(128) default '';
    declare tempStr text default haystack;
    declare tmp text default '';
    declare soundx1 varchar(64) default soundex(needle);
    declare soundx2 varchar(64) default '';
    
    set spacePos = locate(splitChar, tempStr);
    
    while searchLen > 0 do
      if spacePos = 0 then
        set tmp = tempStr;
        select soundex(tmp) into soundx2;
        if soundx1 = soundx2 then
          return 1;
        else
          return 0;
        end if;
      end if;
      
      if spacePos != 0 then
        set tmp = substr(tempStr, 1, spacePos-1);
        set soundx2 = soundex(tmp);
        if soundx1 = soundx2 then
          return 1;
        end if;
        set tempStr = substr(tempStr, spacePos+1);
        set searchLen = length(tempStr);
      end if;
      
      set spacePos = locate(splitChar, tempStr);

    end while;
    
    return 0;
    
  end
$$
delimiter ;
Posted by: Guest on July-07-2021

Browse Popular Code Answers by Language