I need to Update the MySQL DB from Java. In particular, I need to update the time field called as ´t_field´.
CREATE TABLE IF NOT EXISTS `TimeTest` (
`id` SMALLINT NOT NULL AUTO_INCREMENT,
`t_field` TIME NOT NULL,
`resQty` INT(3)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
How can I use the symbol " in the String to write the UPDATE statement if JAVA?
String query = "UPDATE TimeTest SET t_field = "00:05" WHERE id=1"; // sure, it does not work
use single quotation
or