sql = "Select * from product_series order by index desc,id asc 我想写查询id小于等于7的序列,怎么改

问题描述:

sql = "Select * from product_series order by index desc,id asc 我想写查询id小于等于7的序列,怎么改

加个where 条件
Select * from product_series where id