我使用PDO在mysql中创建了一个查询,我使用FETCH_OBJ作为对象返回数据,我想将它作为JSON输出用于Ajax调用,我在这里也看到了一个在堆栈溢出中的示例,它正在工作。这是密码。$post_datas // this is where the query results saved
但我的问题是,我想让每个
我正在使用JDBC驱动程序和ResultSet读写mysqlJSON类型。如何将ResultSet中的JSON类型提取为字符串JSON,以便用于java程序?mysql> set names UTF8MB4; // so that json values can be inserted using jdbc driver otherwise it was complainingString myjsonString = &q