title: Insert dates in MySql Workbench
body: <p>I have a error when I try to insert dates with MySql Workbenck</p>
  
  <blockquote>
    <p>ERROR 1452: Cannot add or update a child row: a foreign key constraint fails (<code>myfacebook</code>.<code>mensajes</code>, CONSTRAINT <code>CodigoRedDest</code> FOREIGN KEY (<code>Codigo</code>) REFERENCES <code>redessociales</code> (<code>Codigo</code>) ON DELETE NO ACTION ON UPDATE NO ACTION)</p>
  </blockquote>
  
  <p>SQL statement:</p>
  
  <pre><code>INSERT INTO `myfacebook`.`mensajes` (`Codigo`, `NickUsuario`, `CodigoRedDest`, `Mensaje`, `Fecha`) 
  VALUES ('7', 'MaGo', '1', 'M7', '2013-09-23')
  </code></pre>
  
  <p>I'm beginner and I don't know what is the problem. If you need more dates about my tables, you say me.</p>
  
  <p>Thanks for your answers.</p>