Where conditions I wrote include: $ arr_search [& #039; Baoming. limits & amp; lt; & amp; gt; & #039;] & #039; Baoming. ck_nums & #039; but some of the printed SQL: Baoming. limits & amp; lt; & amp; gt; & #039; Baoming. ck_nums & #039; that is, Baoming. the ck_nums field is added... the where conditions I wrote include:
$ Arr_search ['baoming. limits <> '] = 'baoming. ck_nums ';
However, execute some printed SQL statements in cakephp:
Baoming
.
Limits
<> 'Baoming. ck_nums'
That is, if the field Baoming. ck_nums is enclosed in single quotes, the query result is incorrect. How can I prevent it from automatically adding single quotes.
I have not solved this problem for a long time. I hope you can help me.
Thank you.
Reply content:
The where conditions I wrote include:
$ Arr_search ['baoming. limits <> '] = 'baoming. ck_nums ';
However, execute some printed SQL statements in cakephp:
Baoming
.Limits
<> 'Baoming. ck_nums'
That is, if the field Baoming. ck_nums is enclosed in single quotes, the query result is incorrect. How can I prevent it from automatically adding single quotes.
I have not solved this problem for a long time. I hope you can help me.
Thank you.
Solution found:
$ Arr_search [] = 'baoming. limits <> Baoming. ck_nums ';