You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
db_name="test3"
sql="select a.id,b.id from (select * from t1) a , t1 b where a.id=b.id;"
sql = f"""/--user={user};--password={password};--host={host};--port={port};--masking=1;/
inception_magic_start;
use {db_name};
{sql}
inception_magic_commit;"""
cur.execute(sql)
rows=cur.fetchall()
环境
数据库: [mysql]
版本: [例如 5.7.21]
参数
可能与问题相关的设置参数
The text was updated successfully, but these errors were encountered:
描述
select a.id,b.id from (select * from t1) a , t1 b where a.id=b.id
类似sql,同一个表的情况下,前一个表为子查询无法解析出a.id 字段
列 'a.id' 不存在.
重现
import pymysql
ince_dict={
"host":'127.0.0.1',
"port":4000
}
connect=pymysql.connect(**ince_dict)
cur=connect.cursor()
host="10.11.12.15"
user="archery"
port=3306
password="123456"
db_name="test3"
sql="select a.id,b.id from (select * from t1) a , t1 b where a.id=b.id;"
sql = f"""/--user={user};--password={password};--host={host};--port={port};--masking=1;/
inception_magic_start;
use
{db_name}
;{sql}
inception_magic_commit;"""
cur.execute(sql)
rows=cur.fetchall()
环境
参数
可能与问题相关的设置参数
The text was updated successfully, but these errors were encountered: