如何把文本里的多行记录变成一行记录
如何把文本里的876行记录
'07 10 12 20 21',
'05 08 13 14 32',
'15 21 22 24 27',
'01 11 19 30 32',
'11 17 19 20 34',
'06 17 18 25 29',
'05 14 23 25 28',
'07 12 26 30 32',
'05 10 17 23 25',
'04 09 11 30 32',
'03 07 20 27 32',
'10 12 17 23 27',
'09 12 16 19 35',
'06 07 09 17 24',
'02 03 15 28 35',
'01 04 21 22 24',
'08 19 27 29 34',
'14 18 20 24 27',
'05 08 24 29 30',
'07 11 21 22 35',
'03 13 14 22 26',
'02 10 16 18 34',
'01 02 12 19 35',
'01 12 20 21 24',
'03 05 14 30 35',
'04 10 13 18 23',
'08 24 26 31 32',
'06 10 23 26 31',
'02 15 29 30 34',
'02 04 09 28 29',
'20 32 33 34 35',
'12 14 16 19 25',
'04 09 24 30 35',
'09 17 21 28 29',
'02 03 12 13 25',
'03 11 17 21 30',
'19 20 30 33 35',
'11 15 22 27 35',
'04 15 19 24 35',
'10 14 29 30 35',
变成一行记录
'07 10 12 20 21','05 08 13 14 32','15 21 22 24 27','01 11 19 30 32','11 17 19 20 34','06 17 18 25 29','05 14 23 25 28','07 12 26 30 32','05 10 17 23 25','04 09 11 30 32','03 07 20 27 32','10 12 17 23 27','09 12 16 19 35','06 07 09 17 24','02 03 15 28 35','01 04 21 22 24','08 19 27 29 34','14 18 20 24 27','05 08 24 29 30','07 11 21 22 35','03 13 14 22 26','02 10 16 18 34','01 02 12 19 35','01 12 20 21 24','03 05 14 30 35','04 10 13 18 23','08 24 26 31 32','06 10 23 26 31','02 15 29 30 34','02 04 09 28 29','20 32 33 34 35','12 14 16 19 25','04 09 24 30 35','09 17 21 28 29','02 03 12 13 25','03 11 17 21 30','19 20 30 33 35','11 15 22 27 35','04 15 19 24 35','10 14 29 30 35',
------解决方案--------------------
具体的步骤:
打开SQL2005连接服务器 -> 新建查询 ->把待处理的数据复制粘贴进来
'07 10 12 20 21',
'05 08 13 14 32',
'15 21 22 24 27',
'01 11 19 30 32',
'11 17 19 20 34',
'06 17 18 25 29',
'05 14 23 25 28',
'07 12 26 30 32',
'05 10 17 23 25',
'04 09 11 30 32',
'03 07 20 27 32',
'10 12 17 23 27',
'09 12 16 19 35',
'06 07 09 17 24',
'02 03 15 28 35',
......
......
-> ctrl+ h
-> 查找内容:\n
-> 替换内空:空
-> 勾上正则表达式
-> 全部替换
完成以上步骤就可以得到你想要的结果