-
-
Notifications
You must be signed in to change notification settings - Fork 105
Missing left join
in UPDATE statement build
#260
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
Comments
Dear sqlparser developer: Hello update user u left join user_detail ud on u.id = ud.user_id set ud.ip ='33' where u.id = 1 After this statement passes through UPDATE user u SET ud.ip = '33' WHERE u.id = 1 The join part is lost, and there is no join module under the update statement according to the document. Hope it can be resolved |
Hi @wheng82 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
left join
in UPDATE statement build
Signed-off-by: William Desportes <williamdes@wdes.fr>
Pull-request: #443 Signed-off-by: William Desportes <williamdes@wdes.fr>
Dear sqlparser developer: Hello
Thank you very much and your team for developing PHP myadmin / sql-parser, an excellent PHP parser component with SQL grammar, which has helped me solve a series of crud-related interface problems. At present, I have used the software provided by you to implement a select SQL statement to complete a table, turn pages, query, repair. Change, add, delete operations.
I found a requirement in the process of using, that is, tables for join can also implement the update function, I hope you can add the corresponding function here.
For example, I have a select statement
I hope that I can update the data of the join table when I update it, but the syntax of the join part will be lost when this sentence is translated into the update statement at present.
for example
This statement becomes $parser - > statements [0] - > build () code after new parser ($sql)
The join part is missing, and there is no join module under the document update state in the hope of being resolved.
Thanks very much! Best wishes for sql-parser!
The text was updated successfully, but these errors were encountered: