rs.open "select Top 10 * from shangpinliebiao where (?????)order by shopxp_id desc ",conn,1,1
我的数据库shangpinliebiao中有个字段:新品(shopxp_new) 是否类型的。我要把它的最新10条记录选择出来。那个条件语句要怎么写。
rs.open "select Top 10 * from shangpinliebiao where (?????)order by shopxp_id desc ",conn,1,1
我的数据库shangpinliebiao中有个字段:新品(shopxp_new) 是否类型的。我要把它的最新10条记录选择出来。那个条件语句要怎么写。
rs.open "select Top 10 * from shangpinliebiao where shopxp_new=true order by shopxp_id desc ",conn,1,1
或者
rs.open "select Top 10 * from shangpinliebiao where shopxp_new=1 order by shopxp_id desc ",conn,1,1
<%set rs=server.CreateObject("adodb.recordset") sql="select Top 10 * from shangpinliebiao where shopxp_new=true order by shopxp_id desc "
rs.open conn,3,3 %>
如果shopxp_id 是自动编号,你的问题不是已经解决了吗?