摘要:
1.查询锁住表信息 show OPEN TABLES where In_use > 0; 2.查看进程 show processlist; 3.解开锁住的表 需要杀掉锁住表的相关进程Id。 kill id 可使用 select concat('kill ',id,';') from informat 阅读全文
摘要:
row_number() over() 函数会为查询出来的每一行记录生成一个序号,依次排序且不会重复,注意使用row_number函数时必须要用over子句选择对某一列进行排序才能生成序号。 select row_number() over( order by col desc) index fro 阅读全文