Skip to content

Instantly share code, notes, and snippets.

@YasuakiHirano
Created January 21, 2016 05:25
Show Gist options
  • Save YasuakiHirano/69062c7c16f88b783e77 to your computer and use it in GitHub Desktop.
Save YasuakiHirano/69062c7c16f88b783e77 to your computer and use it in GitHub Desktop.
oracle hankaku kana check
SET SERVEROUTPUT ON
DECLARE
vstr varchar2(256):= 'ヒラノ';
BEGIN
IF (REGEXP_LIKE(vstr, '^([ヲ-゚]|[0-9A-Za-z])*$')) THEN
dbms_output.put_line('OK');
ELSE
dbms_output.put_line('NG');
END IF;
END;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment