例如,假设我创建了一个表,名称为“预算”,列为“资金”。当用户在VB表单中输入一个值时,它将保存在注册表的“金额”栏中,并且其中输入的值将在“资金”中扣除。我尝试过这个但失败了。
Update 'Table Name' SET Funds = (Funds - 'Value inserted')
最佳答案
这是正确的查询,可能是插入值的数据类型与资金不同。
Update 'Table Name' SET Funds = (Funds - 'Value inserted')
关于mysql - 如何减去特定表值中用户输入的值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21809975/