MySQL where in 排序
(2012-10-12 15:13:48)
					
											标签:
																				
                            mysqlit | 
					分类: 程序相关 | 
			select * from table where id in (5,1,8) 
 
						
		
		
		
		
		
		
							
		
				
		
				
	Where in 按条件顺序排序 
 
							
		select * from table where id in (5,1,8) order by field(id, 5,
1 ,8)

加载中…