I need to loop based on information coming from a database field.
I have a file with information and I have to insert it in certain tables, before I have in this file a date field with time, which, in order to insert it, cannot exist in the database, and for this I have to increment it by one second to the time and look for it again, to check that the new date time exists ... so until it does not find any record, then it would take that new date time (if it is increased, if I do not keep the one from the file) to insert it in the table.