No me deja cambiar el valor predeterminado de un campo en la base de datos que tengo que usar para hacer un trabajo incluso siendo root, y encima me da un error de que un campo no tiene valor por defecto, ¿que hago?
num_emp1.setText("" + rs.getDouble("num_emp"));
GuardaEmp = Double.parseDouble(num_emp1.getText());
private void AceptarActionPerformed(java.awt.event.ActionEvent evt) {
try
{
sqlDate = new java.sql.Date(utilDate.getTime());
tablaEmp.insertar(sqlDate, GuardaJefe,
nombre1.getText(),GuardaDpto,GuardaEmp,
GuardaSalario,tarea1.getText());
}
catch(Exception e)
{
e.printStackTrace();
}
}
Cuando he añadido por fin un valor por defecto me sale el error de:
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
y si intento borrarlo desde java me sale esto otro:
Can not issue data manipulation statements with executeQuery().
No se que hacer.