Simple data anonymization: Difference between revisions
Jump to navigation
Jump to search
← Older edit
Newer edit →
Simple data anonymization
(edit)
Revision as of 10:54, 29 July 2016
89 bytes removed
,
29 July 2016
m
→case2: 王小明 --> 王OO; 孤獨求敗 --> 孤OO敗
Revision as of 10:48, 29 July 2016
(
edit
)
Planetoid
(
talk
|
contribs
)
m
No edit summary
← Older edit
Revision as of 10:54, 29 July 2016
(
edit
)
(
undo
)
Planetoid
(
talk
|
contribs
)
m
(
→case2: 王小明 --> 王OO; 孤獨求敗 --> 孤OO敗
)
Newer edit →
Line 53:
Line 53:
-- SET @name := "Guo da-xia";
-- SET @name := "Guo da-xia";
SELECT
CASE
SELECT CONCAT(LEFT(@name, 1), 'OO', RIGHT(@name, CHAR_LENGTH(@name)-3));
WHEN CHAR_LENGTH(@name) =2 THEN CONCAT(LEFT(@name, 1), 'OO')
ELSE
CONCAT(LEFT(@name, 1), 'OO', RIGHT(@name, CHAR_LENGTH(@name)-3))
END
;
</pre>
</pre>
Planetoid
Bureaucrats
,
Administrators
15,030
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
Special pages
Printable version