mac qq邮箱:ASP菜鸟请教查询问题!

来源:百度文库 编辑:神马品牌网 时间:2024/05/05 02:03:58
rs.open "select * from skyucning where typeid='言情片' order by articleid desc",conn,1,1

skyucning(表名)
typeid(影片分类字段名)
articleid(影片ID字段名)

想在这个查询中再添加一个是否被推荐的字段(best)请问如何添加?

你是说数据库中已经有best字段的情况下如何写命令吗?只要加上就行了:
rs.open "select * from skyucning where typeid='言情片' and best='true' order by articleid desc",conn,1,1