sqlserver教程网

当前位置: 主页 > sql语言 >

sql查询降序和升序

时间:2017-01-06 20:18来源:www.sqlserver.net.cn 作者:admin 点击:
select * from news where typeid=501 order by typeid asc 升序 select * from news where typeid=501 order by typeid desc 降序
select * from news where typeid=’501‘ order by typeid asc 升序
select * from news where typeid=’501‘ order by typeid desc 降序 (责任编辑:admin)
顶一下
(10)
34.5%
踩一下
(19)
65.5%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
验证码: 点击我更换图片
栏目列表
推荐内容
  • SQL TOP 的用法

    SQL Server 的语法: SELECT TOP number|percent column_name(s)FROM table_name 等...

  • SQL测试题1

    一、问答题 1、数据库包含哪些哪几种后缀名的文件必须,这些...