I’m extremely new to “updating” databases as I’ve only ever wrote queries as select statements.
I have a record i need to delete or change from the database. How would I go about doing that? Lets take updating a column first.
I want to update the “Customer” table and the “SNumber” column where the “TicketNum” Column is “123” Right now “SNumber” for that record is blank, and i’d like it to be “115”
I was thinking:
update Customer
set snumber = '115'
where ticketnum = '123'
Obviously I do not want to run this query with fear of messing up the database.
The second part of this is how would I delete the record all together?
Thanks
that is correct.
remember you can update and then issue a ROLLBACk if you need to undo it.
delete is similar: