Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表,其中有一列名为Name.
Name.
它有数据:
John Jack Josh Bob ...
我想运行一个查询来重新排列名称的字母。
UPDATE [table] SET [name] = ?
结果:
hnoJ ckJa shoJ boB
是否有可能做到这一点?
这不是很漂亮,但它会混淆字母:
select right(name, 2) + reverse(left(name, len(name) - 2)) from names
见SQL Fiddle with Demo