I have a table in mysql with just one column (no primary key), say column is like this->
Column Name
----------------
Data1
Data2
Data4
What i want to do is change "Data4" to "Data3" using java connectivity. But to change cell values, i know that command->
Alter Table <tablename> set <columnname>="something" where <someothercolumnname>="somethingelse";
but this needs atleast 2 column in table, i get the syntax error when there is just one column. So can anyone help me with correct command?
Alteris different fromUpdatealter is used to update table schema if you want to update table data then use update queryupdate tablename set columnname ='value' where columnname='somevalue'