0
我創建這個函數應該返回一個隨機字符串:MySQL的函數返回什麼
create function createRandomString() returns Text
return concat(
char(round(rand()*25)),
char(round(rand()*25)),
char(round(rand()*25)),
char(round(rand()*25)),
char(round(rand()*25)),
char(round(rand()*25)),
char(round(rand()*25)),
char(round(rand()*25))
);
出於某種原因,這個函數返回什麼...我不知道爲什麼..
當我在選擇內使用完全相同的concat()
- 它的作品。
會做,謝謝! –