'2019@162440' OR field2 LIKE '%%2019@%%';
在本例中,它将尝试执行field2 = '2019@162440'和field2 LIKE '%%2019@%%'条件的匹配(即,它将搜索与这些条件匹配的行,因此,即使已经找到了行匹配的field2 = '2019@162440',也需要更多的计算能力来尝试查找符合这两种条件的行)。是否有一种方法可以通过修改查询来指示mysql</e
我尝试使用where条件和includes来查找值的数组。但是得到了一些错误..,[304,305])
ActiveRecord::StatementInvalid: Mysql::Error: You have an error in your SQL syntax; checkthe manual that corresponds to your MySQL server version for the right syntax to use near '304,305)'