I have entries in (sqlite db) in table (patient) which contains (id, nom, pnom, ddn, date, bilan, ordonnance)
e.g. of the structure of 1 row:
<table border="1">
<tr>
<td>id</td><td>nom</td><td>pnom</td><td>ddn</td><td>date</td><td>bilan</td><td>ordonnance</td>
</tr>
<tr>
<td>1</td><td>Someone</td><td>Someone</td><td>12/12/1992</td><td>12/01/2016</td><td>?12/01/2016!dat goes here?15/01/2016!dat goes here?nn/nn/nnnn!nnn goes here</td><td>?12/01/2016!dat goes here?15/01/2016!dat goes here?nn/nn/nnnn!nnn goes here</td>
</tr>
</table>
I have created two tables "bilan" and "ordonnance", they both contain
id, pid, date, data
Is it possible, with sql, to:
select id, bilan from patient
then
insert into bilan (pid, date, data) Values (patient.id, '12/01/2016', 'dat goes here');
insert into bilan (pid, date, data) Values (patient.id, '15/01/2016', 'dat goes here');
insert into bilan (pid, date, data) Values (patient.id, 'nn/nn/nnnn', 'nnn goes here');
Same thing with "ordonnance"