Parsing SQL string

前端 未结 5 1118
我寻月下人不归
我寻月下人不归 2021-01-21 08:44

What is a good method for parsing an sql string into it separate components. I\'v tried with a regex, however I can\'t get it to work just right.

Say for instance:

5条回答
  •  孤独总比滥情好
    2021-01-21 09:09

    The example that you have shown,is a code that will read your SQL statement and tokenize with spaced in between and store each token in the array. If you are looking for the such pice of code, you can make that with split functions in php: http://ca.php.net/split

    Regards,
    Pooria.

提交回复
热议问题