无法准备语句(1 无权使用功能:随机)

Could not prepare statement (1 not authorized to use function: random)

使用Query ORDER BY RANDOM() LIMIT 5; 给出错误
无法准备语句(1 无权使用函数:随机)

SQLError {message: "could not prepare statement (1 not authorized to use function: random)", code: 5, UNKNOWN_ERR: 0, DATABASE_ERR: 1, VERSION_ERR: 2…} code: 5 message: "could not prepare statement (1 not authorized to use function: random)" __proto__: SQLError

random() 功能不是 Web SQL 的一部分;你不能使用它。

您必须以不同的方式实现您的查询。

RAND() 不起作用还是一回事?