Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法插入从一组数字中选择的随机数,即我想在一个字段中随机插入一个 2、3、5、6 或 7。它必须是这些数字之一,并且不能是不同的数字。这可能吗?
所以你需要类似的东西
SELECT mid('23567',FLOOR(1 + (RAND() * 5)),1);