Question
Today, when writing MySQL code in pycharm, I always encounter errors when using Union. Although the syntax itself is correct, the red horizontal line is annoying
It’s just that you have to change union to union all to eliminate the error report.
Press setting -> editor-> Inspections, then find no data sources configured under the SQL on the right, and cancel all related to the red exclamation mark, but it is still fruitless.
However, inspired by the article, the reason for the problem is found in the location of the configuration database
Solution:
The configuration database is in file -> Settings -> Languages & Frameworks -> SQL conversations
the reason for the problem is that I configured the database before. At that time, Clickhouse was configured, which is different from MySQL in the usage of union,
so just change Clickhouse to MySQL.
before change
modified
This will return to normal~
Read More:
- How to Fix Microsoft SQL Server Error 1326
- How to Solve Clickhouse restart error: Cannot obtain value of path from config file…
- How to Solve Starrocks Various Error
- How to Solve Application failed to start error
- How to Solve ClickHouse Connect Error: Connection refuse
- Android 10: How to Solve Systemui Error
- How to Solve Logstash error: failed to execute action
- How to Solve Kotlin unresolved reference error
- How to Solve using stm32f4 to drive PS2 error
- How to Solve NPM update check failed Error
- Duplicate entry ‘1’ for key’PRIMARY’ (How to Solve)
- How to Solve Error: failed to load response
- How to Solve dtd Error in MybatisGenerator.xml file
- How to Solve Webpack CacheGroups Error
- How to Solve DB2 uses Limit Error
- How to Solve elasticSearch8.1.2 Install Error in Win10
- How to Solve Namedparameterjdbctemplate.queryforobject() Return Error
- How to Solve Git submodule update error
- How to Solve Error: Cannot find the declaration of element ‘beans’.
- How to Solve Hmaster hangs up issue due to namenode switching in Ha mode