I have 2 tables, 1 for patients
where I have their information and the other is for therapy type and date of therapy.
I need to random therapy dates (10 instances which I already did), I was wondering if it is possible to put all the dates into the same field, because I tried and only get the first date others are displayed like 0000-00-00
.
Example of 2nd database:
id type date
1 1 2013-09-21
2013-09-22
2013-09-23
2013-09-24
2013-09-25
2013-09-26
2013-09-27
2013-09-28
2013-09-29
2013-09-30
2 1 ...
and so on...
Yes you can try like this using paranthesis:-
INSERT INTO tables(columndates) VALUES ('date1'), ('date2'), ('date3'), ('date4'), ('date5');
But it would be good idea to create another table with one-to-many or so relationship. One row should contain one value.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.