-2
Hi,
I need to make a update in a field (called block) for each given amount of records. I have 100 records, for every 10, I must enter a (automatic) number in the field. The idea is to divide the records at the time of the consultation, thus:
Block 1 - John, Mary,... until the tenth.
Block 2 - Pedro, Manoel,... until the twentieth. etc....
I used the 100 example, but I actually have 5,000 that grows every day, so when I perform a certain function - or automatically, you’ll have to start creating and inserting a new block after the 100 records and continue until I’m identified that 10 have already been updated, when there is the 111 record, will already begin to insert the 12 block, in case.
It worked! But I had to change to
$inserirCliente->execute($cliente);
– Anderson Felipe
As I do in this case, to give a UPDATE in the records that already exist?
– Anderson Felipe