SQL查询:
SELECT *
FROM Products
WHERE ProductName BETWEEN 'Carnarvon Tigers' AND 'Mozzarella di Giovanni'
ORDER BY ProductID;
答案 0 :(得分:0)
MySQL有一个rand
函数,它返回一个0到1之间的随机数。你可以按顺序排序:
SELECT *
FROM Products
WHERE ProductName BETWEEN 'Carnarvon Tigers' AND 'Mozzarella di Giovanni'
ORDER BY RAND();