Home > database >  GBase 8 a support full Angle character to_single_byte function using the example of half Angle
GBase 8 a support full Angle character to_single_byte function using the example of half Angle

Time:02-21

Chinese for different characters and letters, Numbers, etc are all Angle mode, GBase 8 a database cluster provides to_single_byte function, the whole Angle character into half Angle character,
Function TO_SINGLE_BYTE (arg)
Will the incoming arg from the Angle of character turn half Angle character, arg and column can be any type of value, if arg is a string, and a string containing the whole Angle, in the output will be whole Angle character into half Angle character, other characters remain the same,
This function only in UTF8 character set GBK character set and effective,
Currently only 95 characters to support the whole Angle turned half Angle,
95 characters are as follows:
The blank space! "# $% & amp; '() *, +, -./:; <=& gt; ? @ ^ _ '[\] {|} ~ a-z a-z 0-9
The sample gbase> The select to_single_byte (' {} [] () + - */abcdefgABCDEFG '); + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + | to_single_byte (' {} [] () + - */abcdefgABCDEFG ') | + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + | {} [] () + - */abcdefgABCDEFG | + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + 1 row in the set (Elapsed: 00:00:00. 00)
  • Related