-
-
Notifications
You must be signed in to change notification settings - Fork 108
Description
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
Select u.*, ud. nickname from user u left join user_detail ud on u. id = ud. user_id where u.del = 0
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
Update user u left join user_detail UD on u.id = ud.user_id set ud.ip ='33' where u.id = 1
This statement becomes $parser - > statements [0] - > build () code after new parser ($sql)
UPDATE user `u`SET ud.ip ='33' WHERE u.id = 1
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!