<
函数的AutoKey(strkey)

const lngsubkey = 2
lnglenkey = Len(strkey)

选择案例lnglenkey
案例0如果错误页是空的。
响应。重定向错误
案例1如果长度为1,则没有值。
strnew1 =
strnew2 =
如果长度大于1,则从字符串第一个字符开始,作为查询条件的长度为2的循环。

我lnglenkey = 1 -(lngsubkey-1)

strsubkey =中(strkey,我lngsubkey)

strnew1 = strnew1或u_name像strsubkey %
strnew2 = strnew2或u_info像strsubkey %
下一个
最后选择

获取完整的SQL语句
自动键=选择t_sample哪里u_name像*strkey 或u_info像%。strkey strnew1 strnew2 %。
端功能
%>