私は2つのテーブルを持っています。1 つのテーブルには単語が含まれています。他のテーブルにはポイントが含まれています。
table words:
id word
table points:
id wordid x y
word 列は一意です。
入力の現在の x 値と word|y 値のリストを受け取るストアド プロシージャを書きたいと思います。
例えば:
それは最初の単語の表の行です:
id word
1 Carrot
2 Apple
3 Potato
プロシージャーを呼び出します StoreData(x = 5, words = { Carrot:123, Onion:321 })
。
その結果、次のようになります。
Words table:
id word
1 Carrot
2 Apple
3 Potato
4 Onion
Points table:
id wordid x y
1 1 5 123
2 4 5 321
どうやってするの?