gpt4 book ai didi

mysql - 查询错误: get_complied_select Not working Properly?

转载 作者:行者123 更新时间:2023-11-29 19:42:04 27 4
gpt4 key购买 nike

我有下面的代码...

$subQuery = $this->db->select('postid')
->from('sp_tag_tbl')
->where("find_in_set('" . $userid . "', userid) <> 0")
->get_compiled_select();
echo '<pre>'; print_r($subQuery); exit;

嵌入 \n 的 get_compiled_select 在将其用作另一个查询中的子查询时会产生错误。请告诉我正确的使用方法。

最佳答案

由于 Codeigniter 查询格式而嵌入了 \n。我们需要传递 FALSE 作为第三个参数来停止格式化。

关于mysql - 查询错误: get_complied_select Not working Properly?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41295407/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com