-5
我有表contacts
如何更新隨機預言另一個表
ID CONTACT_ID TYPE_ID
1 5 1
2 8 1
3 9 1
4 12 2
5 13 1
6 17 2
7 22 2
8 23 2
9 25 1
10 33 2
11 34 2
12 48 1
. ... ...
n n 2
如何更新CONTACT_ID隨機的,但不會改變TYPE_ID(其中TYPE_ID = 1個隨機更新這個接觸或其中TYPE_ID = 2->更新隨機這個觸點) 例如
ID CONTACT_ID TYPE_ID
1 9 1
2 13 1
3 8 1
4 17 2
5 5 1
6 22 2
7 12 2
8 33 2
9 48 1
10 34 2
11 23 2
12 25 1
. ... ...
n n 2
你的問題沒有意義。期望的結果可以幫助在這種情況下。 –
你想寫一個可以這樣做的程序,或者只是想查詢嗎? – ruhul
我只需要查詢 – Tiko