查找 sqlserver 中字符串的ascii码SET TEXTSIZE 0-- Create variables for the character string and for the current -- position in the string.DECLARE @position int, @string char(8)-- Initialize the current position and the string variables.SET @position = 1SET @s
string.gsub 函数有三个参数:目标串,模式串,替换串.基本作用是用来查找匹配模式的串,并将使用替换串其替换掉: s = string.gsub("Lua is good", "good", "bad?") print(s) --> Lua is bad string.gsub 的第二个返回值表示进行替换操作的次数.例如,下面代码计字符串中空格出现的次数: _, count = string.gsub("test te