Reason for resolution:
In the process of multi-level query, you need to give the table alias.
Code example
Wrong query method:
select * from (select s.sno from student s where s.ssex='woman');
Correct query method:
select * from (select s.sno from student s where s.ssex='woman') as mid_sno;
In fact, the difference lies in whether there is an as mid behind it_sno. This is to ensure that each derived table needs to have its own alias.
Read More:
- MySQL 8.0 error 1114 (HY000): the table’sbtest1’is full (Fixed)
- How to Fix MySQL error 1005: can’t create table (errno: 150)
- MySQL Build table error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL ser
- Solve MySQL table can not query, modify, delete and other operations and appear stuck
- [Solved] flicksql cdc mysql to kafka Connect Error: org.apache.flink.table.api.ValidationException…
- How to Solve MYSQL ERROR: relation “table_name” does not exist
- MySQL Error: [ERROR] [FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file
- Mysql Flashback Warning: C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql.exe
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket’/var/lib/mysql/mysql.sock’ (2)
- How to release Oracle PLSQL data lock table
- MySql Install Error: Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘
- [Solved] MYSQL Command Execute Error: Can ‘t connect to local MySQL server through socket ‘/tmp/mysql.sock ‘(2) “
- mac brew install mysql ‘/tmp/mysql.sock’ (2) [How to Solve]
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
- (Fixed) workbench MySQL Error Code: 2013. Lost connection to MySQL server during query
- SQL Server Deletes a table foreign key constraint Error [Solved]
- MYSQL 5.7 Error Code: 1290. The MySQL server is running with the –secure-file-priv option so it..
- How to Solve can‘t connect to local mysql server through socket ‘/var/lib/mysql/mysql.sock‘
- ORA-29913 ORA-06512 external table query prompt: error
- How to Fix MySQL ERROR 1130 (HY000): Host ‘XXXX’ is not allowed to connect to this MySQL server