隨機數字:
update you_table set you_c = round(rand()*10000000000%2000000000)
uuid:
update you_table set you_c = replace(uuid(),'-','')
如果不考慮重複的問題,可以用第一個!
有唯一約束的,就用第二個
隨機數字:
update you_table set you_c = round(rand()*10000000000%2000000000)
update you_table set you_c = replace(uuid(),'-','')
有唯一約束的,就用第二個
mysql delele table語句使用別名: 語法: delete t from table t where t.column = value;
UNION用的比較多union all是直接連接,取到得是所有值,記錄可能有重複 union 是取唯一值,記錄沒有重複 1、UNION 的語法如下: [SQL 語句 1] UNION [SQL