我有一个带NodeJS的API
我想在CSV文件中打印像这样的对象
String[][] getAllTheWorkers(DConnector connector) throws CZeitExceptionHand {
try {
Connection connect = connector.getConnenction();
Statement stmt = connect.createStatement();
ResultSet result = stmt.executeQuery("SELECT ");
result.last();
int nt = result.getRow();
result.beforeFirst();
}
return results;
} catch (SQLException e) {
throw new CZeitExceptionHand("Error: " + e);
}
}
我希望在我的CSV文件中
[
{
"birthday":"1992-01-01",
"email":"test@mail.com",
"gender":"male"
},
{
"birthday":"2000-03-23",
"email":"test2@mail.com",
}
]
对于使用
打印CSVbirthday,email,gender
1992-01-01,test@gmail.com,male
2000-03-23,test2@mail.com
但在CSV文件中打印[Object object]
有什么帮助吗?谢谢!