title: MySQL Syntax Error - Java
body: <p>$You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'null, null, null, 98-4B-E1-A9-C5-82, null)' at line 1$</p>
  
  <p>Error that i got when this is executing</p>
  
  <pre><code>st.executeUpdate("INSERT INTO gameservers" + "VALUES (null, null, null, "+macAddress+", null)");
  </code></pre>
  
  <p>And my sql:</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `gameservers` (
    `server_id` int(11) NOT NULL default '0',
    `hexid` varchar(50) NOT NULL default '',
    `host` varchar(50) NOT NULL default '',
    `macAddress` varchar(50) NOT NULL default '',
    `firstTime` int(1) NOT NULL default '0',
    PRIMARY KEY  (`server_id`)
  ) ;
  </code></pre>
  
  <p>Any idea?</p>