我有一张桌子
____________________________________________________________
| Message |
|___________________________________________________________|
| Sender | Message | Receiver | message_id |
| John | How Are You?| Will | 1 |
|_________|_____________|___________________|_______________|
在 Will 计算机中,我显示如下
Message By:John
Message:How Are You?
现在假设 John 删除了这条消息但我无法删除记录,因为 Will 尚未删除。因此我正在运行更新查询
Update Message Set Sender='' where message_id=1;
但是在这样做之后,计算机消息将更改如下
Message By: //Because i have changed sender to null
Message:How Are You?
现在我该如何克服这个没有得到想要的输出的错误