两个表都查询用链接啊.select*fromtable_archivesinnerjointable_commentsontable_archives.mid=table_comments.mid查询用排序就行了啊.、select*fromview_xxxorderbypubtime,senttime。
- 情感问答
- 答案列表
sql语句排序查询:sql语句降序排序怎么写[朗读]
selectdistinctzhiwufromrenyuanorderbyzhiwudesc这样就可以了。
/*forsqlserver我没有调试过,听说有人已经通过case[<input_expression>]when<when_expression>then[else<else_expression>]end*/selectksxxbh。
sql语句的查找:select字段名from表名where条件;sql语句的排序:select字段名from表名orderby字段desc(降序);select字段名from表名orderby字段asc(升序)。
sql语句条件查询排序?selecttop5c_name,c_stufromclasswherelikec_name='%百度%'andc_stu>30andc_type=trueorderbyc_stuasc,c_typedesc。