title: MySQLSyntaxError inserting into MySQL database
body: <p>I would like to insert data into the MySQL database that I am using.I get this <a href="http://pastebin.com/GDr9KV8j" rel="nofollow">ERROR</a>.This is my code:</p>
  
  <pre><code>public boolean insertValues(String gisuniqkey,String objtype,String objkey,String lat,String lng)
  {
      int rc=-1;
      try {
          if(conn==null)
          {
              System.out.println("The connection was not initialized.");
              return false;
          }   
          Statement st=(Statement) conn.createStatement();
          //lots of String concatenation,very expensive...BAD...use StringBuilder instead
          String sql="Insert into ZMAPERP_GIS_DB (GISUNIQKEY,OBJTYPE,OBJKEY,LATITUDE,LONGITUDE) values("+gisuniqkey+","+objtype+","+objkey+","+lat+","+lng+");";
          System.out.println(sql);
          rc=st.executeUpdate(sql);
      } catch (SQLException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      return rc&gt;0?true:false;
  }
  </code></pre>