SQLSTATE[HY000]: General error 2503
This error is caused by $this – & gt; query. In version 3.2.3, the query and execute methods should be called separately, otherwise an error will be reported in debug mode
After 3.2.3, the TP framework requires different method calls for read and write operations. If it is used incorrectly, an error will be reported in non debugging mode.
Read data using $this->query
Write data using $this->execute
After TP5, it is written as follows:
Read data using Db::query
Write data using Db::execute
Read More:
- How to Solved Error: 18456, Severity: 14, State: 38.
- java.sql.SQLException: Disk full (/tmp/#sql_1eaa2_60.MAI); waiting for someone to free some space
- General error: 2006 MySQL server has gone away [How to Solve]
- How to Solve mysql [Err] 1067-Invalid default value for
- How to Solve MYSQL into outfile Error13
- [Solved] java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corres
- [Linux Docker Mirror] MYSQL Run sql Script Error: Failed to open file ‘/home/mydatabase.sql‘, error: 2
- Dbeaver connects hive to solve the problem that hive custom UDF functions cannot be used in SQL queries in dbeaver
- Bulk Update Error: #Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the m
- How to Solve mysqld — console command error
- How to Solve Nacos startup error
- How to Solve postgres Errror: ERROR #42883 operator does not exist: smallint ~~ unknown
- Docker: How to Solve MYSQL8 & Navicat remote connection error
- How to Solve Mysql8 load data error
- How to Solve “Out of range value for column” Error
- How to Solve Embulk Error: OutputPlugin’bigquery’ is not found
- How to Solve Azkaban startup error
- How to Solve MySQL version 5.7+ Group by group error
- How to Solve c3p0 connect mysql8.0 Error
- How to Solve Error: mysqlclient 1.4.0 or newer is required; you have 0.10.0