作业帮 > 综合 > 作业

请教这样查询语句该怎么写.

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/07/03 12:45:17
请教这样查询语句该怎么写.
有2个表格,第一个表查询数据库product表中前7条记录.sql = "SELECT top 7 * FROM products where not isnull(Prod_Number) ORDER BY id ASC"
第二表要接着前面从第8条记录开始查到第15条记录where not isnull(Prod_Number) ORDER BY id ASC这个条件也一样.该怎么查?
= PageSize)
If ((iRow / 2) = (iRow \ 2)) Then
%>
sql = "SELECT top 7 * FROM products where not isnull(Prod_Number) and id not in (SELECT top 7 id FROM products) ORDER BY id ASC"
你现在 再试试