Skip to content
New issue

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

2018年06月11日 未明确指定字段所属表的隐患 #28

Open
imzyf opened this issue Jun 11, 2018 · 0 comments
Open

2018年06月11日 未明确指定字段所属表的隐患 #28

imzyf opened this issue Jun 11, 2018 · 0 comments

Comments

@imzyf
Copy link
Contributor

imzyf commented Jun 11, 2018

在修改表结构时,在 a 表新添加 name 字段,b 表本事就有 name 字段;原来的项目中有 a b 表的关联查询,并用到了 name 字段

这时,因为 a 表中也添加了 name 字段,原来 name 指的是 a 还是 b 表中的变的不确定了,造成报错

主要原因就是在连表时:未明确指定字段所属表,造成了伏笔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant