Problem background
What is written in the code is general. After an error is reported, it is found that the value in like is actually an integer, but the code is spliced with strings. Therefore, in fact, when postgre queries, SQL is executed with integer columns and string parameters, and this error is reported.
Namely column LIKE ‘%0%’
The same is true for SQL queries:
Solution:
Strings can be queried vaguely, but when querying, if the column is an integer, just use the equal sign directly. Judge in the code. If the column is an integer, splice it= Don’t use like
Read More:
- How to Solve MYSQL ERROR: relation “table_name” does not exist
- [Solved] PostgreSQL enumeration type usage error: operator does not exist error handling
- How to Solve Error: Rsa Public Key not Find
- How to Solve Embulk Error: OutputPlugin’bigquery’ is not found
- [Solved]Error 1054 (42s22): unknown column ‘password’ in ‘field list’ how to modify the password
- How to Solve SQL state [HY000]: general error 2503
- How to Solve MYSQL into outfile Error13
- How to Solve mysql [Err] 1067-Invalid default value for
- How to Solve “Out of range value for column” Error
- How to Solve Navicat open view error
- How to Solve Nacos startup error
- How to Solve c3p0 connect mysql8.0 Error
- How to Solve Azkaban startup error
- How to Solve mysqld — console command error
- [Mybatis] How to Solve the problem of Oracle query processing more than 1000 in conditions
- Docker: How to Solve MYSQL8 & Navicat remote connection error
- How to Solve Mysql8 load data error
- [Solved] Daily further: database error: unknown column ‘model’ in ‘field list‘
- How to Solve MYSQL Error: No module named MySQLdb
- How to Solve Error: mysqlclient 1.4.0 or newer is required; you have 0.10.0