我对MySQL中的JSON数据类型完全陌生。几天前我安装了MySQL 5.7.34,现在我正在玩它。所以,我在MySQL 5.7.34中有下面的表格 product_id int(11) NOT NULL AUTO_INCREMENT,product_name varchar(255) NOT NULL, PRIMARY K
我正在使用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 = "{x: y