Retrieve all entries with $pdo->query in a foreach

cleansweep 520
cleansweep 730
shooting star5

Create a new entry with $pdo->exec

Inserted record for firebolt

Retrieve $rs->fetch(PDO::FETCH_ASSOC)

cleansweep 520
cleansweep 730
shooting star5
firebolt4000

Create new entries with $pdo->prepare

insert nimbus 2000
insert nimbus 2001

Retrieve with PDO::FETCH_ASSOC

cleansweep 520
cleansweep 730
shooting star5
firebolt4000
nimbus 2000100
nimbus 2001150

Update entries with $pdo->prepare

begin transaction
update nimbus 2000
update nimbus 2001
commit

Retrieve with PDO::FETCH_BOUND

cleansweep 520
cleansweep 730
shooting star5
firebolt4000
nimbus 2000120
nimbus 2001250

Delete the new entries

delete firebolt
delete nimbus 2000
delete nimbus 2001

Retrieve with PDO::FETCH_OBJ

cleansweep 520
cleansweep 730
shooting star5