原文可參考相關資料。懶的看過程就直接看總結的部份或是直接看附圖就可以了。
Summary
What: Show End Of Line characters (LF, CR, etc.)
How: “View -> Show Symbol -> Show End of Line”
What: Add quotes to words and a comma at the end
How: “Search -> Replace”
Find what: (.*)
Replace with: "\1",
Search Mode -> Regular expression
What: Remove End Of Line characters (CR, LF)
How: “Search -> Replace”
Carriage Return (CR)
Find what: \r
Replace with: (blank)
Search Mode -> Extended
Line Feed (LF)
Find what: \n
Replace with: (blank)
Search Mode -> Extended
相關資料:
步驟0
步驟1
步驟2
步驟3
成果
[MySQL SQL auto increment id 重置]
- SQL example : INSERT INTO `table` (`id`, `str`) VALUES (12460, 'abc'), (12461, 'abc'), (12462, 'abc');
- 直接修改 SQL 值的方式再重新回寫到 DB內。範例:(^\()(\d{5}), 取代為 \(NULL,。這個範例是 id 值的數字範圍是在 10000 ~ 20000之間。若數字在 1 ~ 20000 之間時則要改為 (^\()(\d{5}), |(^\()(\d{4}), |(^\()(\d{3}), |(^\()(\d{2}), |(^\()(\d{1}),
[其它整理 ]
沒有留言:
張貼留言