次のロジックを実行する 2 つのテーブルがあります。
if (any row with a specific id exist in table1)
{
1. Delete the row from table1
2. insert some data into the table2 with the id as one of the values
3. return success somehow (for me to verify in java)
}
else
{
return fail
}
これは巧妙な方法で表現できると確信していますが、方法がわかりません。手続き型の考え方からこれを翻訳するのを手伝ってくれる人はいますか?
ご挨拶