I have a Paciente
mysql table, in it I have the column id
, nome
, numeroProntuario
etc. This column numeroProntuario
is defined by the increment of +1 resulting from select max(numeroProntuario)
(legacy code, do not judge me).
Now, I'm implementing a waiting list, and I'm integrating with this table, noticing this problem, I thought of using the same id number in the chart number. But I have not found anything like it and I still can not change the previous records.
Does anyone have any idea how I can fix this, or is it not fixed, and should I play anyway?
Patient Table:
id numeroProntuario nome
5565 5548 ANA
5566 5549 PRISCILA
5567 5550 MIRIAN
5568 5551 ALEXANDRE
5569 5552 JACONIAS
5570 5553 KASSIO
5571 5554 KEROLY
5572 5555 ALEX