0. 查看数据库文件名和物理文件名 SELECT name, physical_name AS current_file_location FROM sys.master_files 1. 运行命令 USE master; — Run from master ALTER DATABASE db MODIFY FILE (name=‘db……
1.rank() over:查出指定条件后的进行排名。特点是,加入是对学生排名,使用这个函数,成绩相同的两名是并列,下一位同学空出所占的名次。 select name,subject,score,rank() over(partition by subject order by score desc) rankfrom student_s……
今天安装帝国7.2的时候出现 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘TYPE=MYISAM&……