I've recently updated my database structure and i currently have about 500 records in my database, and inserting a record one by one manually is going to be extremely time consuming.
At the moment i have a table called brunches
which has the following columns
brunchid
timemonday
timetuesday
timewednesday
timethursday
timefriday
timesaturday
timesunday
Currently each column would have a time that the brunch operates but is in the following format '11 AM - 4 PM'
i've created a new table called schedule which has the following columns
brunchid,
mondaystart,
mondayfinish,
tuesdaystart,
tuesdayfinish,
wednesdaystart,
wednesdayfinish,
thursdaystart,
thursdayfinish,
fridaystart,
fridayfinish,
saturdaystart,
saturdayfinish,
sundaystart,
sundayfinish
and the format of that is now 12:00
i am wondering the best way to get the data from each column and convert it from 11 AM - 4PM and changing that automatically to 11:00 AM - 16:00
and then inserting it into the database table schedule
what is the best way to do this?