在sqlite
数据库
中
替换
字符串中的Tab制表符 ,Tab制表符 为x’09’所以sql为:
update question_select set title =replace(title, x’09’,”)
替换
字符串中的CR回车符 ,Tab制表符 为x’0D’,所以sql为:
UPDATE table_name SET field_name=REPLACE(field_name,x’0D’,‘’)
替换
字符串中的LF换行符 ,LF换行符 为x’0A’,所以sql为:
UPDATE table_name SET field_name=REPLACE(field_name,x’0A’,‘’)
替换
其他更多字符,参考 ASCII码表 0-127:
缩写/字符
00000000
NUL(null)
00000001
SOH(start of headling)
00000010
STX (start of text)
00000011
ETX (end of text)
00000100
EOT (end of transmission)
00000101
ENQ (enquiry)
00000110
ACK (acknowledge)
00000111
BEL (bell)
00001000
BS (backspace)
00001001
HT (horizontal tab)
水平制表符
00001010
LF (NL line feed, new line)
00001011
VT (vertical tab)
垂直制表符
00001100
FF (NP form feed, new page)
00001101
CR (carriage return)
00001110
SO (shift out)
00001111
SI (shift in)
00010000
DLE (data link escape)
数据链路转义
00010001
DC1 (device control 1)
设备控制1
00010010
DC2 (device control 2)
设备控制2
00010011
DC3 (device control 3)
设备控制3
00010100
DC4 (device control 4)
设备控制4
00010101
NAK (negative acknowledge)
00010110
SYN (synchronous idle)
00010111
ETB (end of trans. block)
传输块结束
00011000
CAN (cancel)
00011001
EM (end of medium)
00011010
SUB (substitute)
00011011
ESC (escape)
00011100
FS (file separator)
文件分割符
00011101
GS (group separator)
00011110
RS (record separator)
记录分离符
00011111
US (unit separator)
单元分隔符
00100000
(space)
00100001
00100010
00100011
00100100
00100101
00100110
喜欢 (
2
)
赏