淘宝开店需要什么软件:ASP菜鸟请教数据查询问题!

来源:百度文库 编辑:中科新闻网 时间:2024/05/07 16:14:07
rs.open "select * from skyucning where typeid='言情片' order by articleid desc",conn,1,1

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

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

rs.open "select * from skyucning where typeid='言情片' and best="推荐" order by articleid desc",conn,1,1

这里best等于什么就要看你这个best字段的类型了,另外所有需要并列的条件都可以用and连接,是与的关系,用or连接,是或的关系,用not连接,是非的关系。