问题: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 91 Server version: 5.7.25-TiDB-v3.0.12 MySQL Community Server (Apache License 2.0)
Copyright © 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
mysql> SELECT RANK () OVER (ORDER BY PROFIT) FROM ATCENTER.B_MAJOR_BILL; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 22 near “(ORDER BY PROFIT) FROM ATCENTER.B_MAJOR_BILL” mysql>
另外一台环境直接安装的V3.0.12,可以查询 Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 61820 Server version: 5.7.25-TiDB-v3.0.12 MySQL Community Server (Apache License 2.0)
Copyright © 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
mysql> SELECT RANK () OVER (ORDER BY PROFIT) FROM ATCENTER.B_MAJOR_BILL; Empty set (0.00 sec)