We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL: WITH tUser AS (SELECT id,tenant_id FROM sys_user WHERE phone = XXXX AND del_flag = 0)select * from tUser 报错:
1146 - Table 'neuron.tUser' doesn't exist 时间: 0.006s 猜测: 是否是因为with as子查询和select * from tUser使用的不是同一个session,导致with as子查询结束之后,session关闭,子查询内容也随之清空,导致后续select语句找不到表。
The text was updated successfully, but these errors were encountered:
neuron.tUser,可以explain 看看,这个SQL路由到那个分片,这个分片上是否有这个表和库存在
Sorry, something went wrong.
No branches or pull requests
SQL:
WITH tUser AS (SELECT id,tenant_id FROM sys_user WHERE phone = XXXX AND del_flag = 0)select * from tUser
报错:
The text was updated successfully, but these errors were encountered: