如何replace quotes
使用MySQL database
phpmyadmin
中'
列中的所有用户表格中的’
?
示例:找到引号INSERT INTO MYNEWTABLE
select Animal,Name,Color,legs from
(select distinct Animal,Name,Color,legs,dense_rank() over(partition by animal)
as rnk from table) AS T
,替换为其他引号>>> d={'a': 2, 'b': 0, 'c': 1}
>>> [i[0] for i in sorted(d.items(), key=lambda x:x[1])]
['b', 'c', 'a']
感谢。