Questions tagged «in-function»

4
MySQL ORDER BY IN()
我有一个带有ID编号的PHP数组。这些号码已经订购。 现在,我想通过IN()方法获取我的结果,以获取所有ID。 但是,这些ID的排序应类似于IN方法。 例如: IN(4,7,3,8,9) 应该给出如下结果: 4 - Article 4 7 - Article 7 3 - Article 3 8 - Article 8 9 - Article 9 有什么建议?也许有一个功能可以做到这一点? 谢谢!
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.