limit
limit m,n
m代表从字符串的第几个字符截取(注意:和数组类似,字符串的第一个字符对应的序号是0)。
n表示截取几个字符。
eg:
对于字符串CatLovesFish
limit 0,1 limit 1,1 limit 2,1 limit 5,3
对应: C a t ves
ectracvalue()
extractvalue(doc,'/book/author/surname')
extracvalue(m,n)
m代表文档,任意填写。
n代表对应文档的地址
extractvalue报错,最多只能显示32位的字符串!!!
floor()
?id=-1' union select concat_ws('~',(select database()),floor(rand(0)*2)) as p from information_schema.tables group by p --+
除了floor()在爆数据时似乎不能使用group_concat将数据一次性或多个一起爆出以外,extractvalue(),updatexml(),都可以使用group_concat
floor报错能展现64位数据!!!
updatexml()
updatexml(doc,'/book/author/surname','22')
updatexml(a,b,c)
a代表初始文档。
b代表文档地址。
c代表用来替换原文档的字符串。
substr()
substr(start,length)
第一个参数是起始的位置,第二个参数是截取字符串的长度
substr(a,b,c)
a代表字符串
b代表开始截取的字符的位置(注意:此处和limit不一样,是从1开始)。
c代表需要截取的字符的长度。
substring()
substring(start,stop)
两个参数是起止位置,包括“起”,不包括“止”,用区间表示就是[start,stop)。即第二个参数【stop】是截取字符串最终的下标
substring(a,b,c)
a代表字符串
b代表开始截取的字符的位置(注意:此处和limit不一样,是从1开始)。
c代表停止截取的字符的位置。