MATCH(smth, smth2) AGAINST('*string*' IN BOOLEAN MODE)*string* - will match the same as string* and *string does not match anything我可以尝试以某种方式在多个列上使用LIKE,但
我正在使用 FROM picture WHERE hide = 0 ORDER BY gender, RAND( ) LIMIT 0 , 1如何更改SQL以使其快速计算?我是否应该在Picture表中添加一个gender列,这样它就不会将这两个表合并在一起,然后得到一个随机的行,或者是否有其他方法来优化SQL?