契丹秘藏叶乐:sql 排序问题 在线等答

来源:百度文库 编辑:中科新闻网 时间:2024/05/06 11:14:20
如何实现根据数字大小排序的阿?
我用Select id,subject,leixing,lydate,myhits From guest order by myhits desc,结果是9比1大,所以9比10大,即只根据高位排序,如何根据实际大小排序阿

你的 myhits 必须是 int 型的!不能是字符型