<? header("Content-type:image/ "); // Server in the this format: \ or // , when using a non default port number $server = 'KALLESPC\SQLEXPRESS'; $link = mssql_connect('192.168.1.11:1433', 'sa', '123'); if(!$link) { die('Something went wrong w
MySQL使用 IN 查询取出数据排序问题(与in排序相同) 今天在项目中遇到一个问题,就是做一个最近浏览的功能,但是功能做出来了,取出数据时候要用到类似这么一条带in查询的sql语句, select * from xxx where id in (3,2,3,12,1) 其中in里面的内容就是最近流浪的id,但是直接取出来他会默认用id排序,这时候取出的数据在页面显示的最新浏览的导致不是第一项,这时候如何做到不排序呢? 我想到一个笨方法,就是用php程序排序后在插入进行查询,但是比较笨 其实也