SqlServer查询数据中按In排序语句
摘要:select *,CHARINDEX(RTRIM(CAST(ID as NCHAR)),'这里放置要查询的ID字符串以","隔开') as SortNumber from 表 Where ID IN ('ID')order by SortNumber
阅读全文
posted @ 2015-03-11 17:07
posted @ 2015-03-11 17:07