我用node-mysql模块取得mysql数据库里的数据如下,如何解析成如jdbc那样result,哪位高手知道有现成的模块可以解析读取此格式数据 [ { Host: 'localhost’, User: 'root’, Password: '*BB867A63E172242BD41047265EA2AF5DC7D8518F’, Select_priv: 'Y’, Insert_priv: 'Y’, Update_priv: 'Y’, Delete_priv: 'Y’, Create_priv: 'Y’, Drop_priv: 'Y’, Reload_priv: 'Y’, Shutdown_priv: 'Y’, Process_priv: 'Y’, File_priv: 'Y’, Grant_priv: 'Y’, References_priv: 'Y’, Index_priv: 'Y’, Alter_priv: 'Y’, Show_db_priv: 'Y’, Super_priv: 'Y’, Create_tmp_table_priv: 'Y’, Lock_tables_priv: 'Y’, Execute_priv: 'Y’, Repl_slave_priv: 'Y’, Repl_client_priv: 'Y’, Create_view_priv: 'Y’, Show_view_priv: 'Y’, Create_routine_priv: 'Y’, Alter_routine_priv: 'Y’, Create_user_priv: 'Y’, Event_priv: 'Y’, Trigger_priv: 'Y’, ssl_type: '’, ssl_cipher: <Buffer >, x509_issuer: <Buffer >, x509_subject: <Buffer >, max_questions: 0, max_updates: 0, max_connections: 0, max_user_connections: 0 }, 。。。。。。
@xinshouke rows is a array , have question?
Do not complicate the problem
签名: 交流群244728015 《Node.js 服务器框架开发实战》 http://url.cn/Pn07N3