Ejemplo n.º 1
0
    /**
     * 根据json集合生成插入语句
     */
    // [WebMethod(Description = "<span style='color:#f74'>根据json集合生成插入语句 ;</span>")]
    public string AA_createInsertsql_ByHashTable(string key)
    {
        String      jsonStr = "[{\"name\":\"王五\",\"age\":\"29\",\"start_time\":\"2013-02-03\",\"sex\":\"男\",\"itm\":\"2\"}]";
        MyHashtable table   = new MyHashtable();

        return(SqlUtil.getInsertSql("AABB", table.CreateJsonArr(jsonStr)[0]));
    }