so I have a MySQL Database and I want to write an IP address to a specific and existing row.
For example, username "Johnny" logs in and the system will go to the row for username "Johnny" and write to column ipaddress
.
Currently I only know how to create an entire new row using:
queryStr = "INSERT INTO webappdemo.userregistration(firstname,middlename,lastname,email,phonenumber,username,slowHashSalt)" +
"VALUES(?firstname, ?middlename, ?lastname, ?email, ?phonenumber, ?uname, ?slowHashSalt)";
So the question is how to write to an existing row by filtering via username and writing to a specific column.
Thanks.