解决方案 »

  1.   

    /**
     * 插入操作
     */
    public void insert(String table, Object[] params) { try {
    String sql_select = "insert into "
    + table
    + "(city, date, img, temperature, wind, weather) values(?, ?, ?, ?, ?, ?)";
    database.execSQL(sql_select, params);
    } catch (Exception e) {
    e.printStackTrace();

    }

      

  2.   

    params数组有六个值,就是对应六个问号的(占位符)
      

  3.   

    没试过谁列名拿来置位的,你试下这样行不行:Cursor c = db.query(table, null, " '?' like '20'", new String[]
             {"linename"}, null, null, null);