I have a launch line, in which this line would need to receive the value of the previous line +1, some example of how to do this?
Table structure:
CREATE TABLE 'lancamento' (
'data' VARCHAR(10) NOT NULL,
'descricao' VARCHAR(30) NOT NULL,
'debito' DOUBLE(20,2) NOT NULL,
'credito' DOUBLE(20,2) NOT NULL,
'saldo' DOUBLE(20,2) NOT NULL,
'lancamento' DOUBLE(20,2) NOT NULL
) ENGINE=INNODB