INSERT INTO invoices (invoiceid, custid, invdate, total) ; VALUES (STR(TTOD(TODAY()),6), "C0001", DATE(), 0) Add items and recalc total: