USE sql_invoicing;
UPDATE invoices
SET payment_total = invoice_total*0.5,
payment_date = NULL
WHERE invoice_id = 1
没啥好说的,
就是直接 update 然后set是要改什么内容,最后where定位
完毕
USE sql_invoicing;
UPDATE invoices
SET payment_total = invoice_total*0.5,
payment_date = NULL
WHERE invoice_id = 1
没啥好说的,
就是直接 update 然后set是要改什么内容,最后where定位
完毕