这个就自己写循环就行了
QSqlQuery query;
query.exec("select * from xxxx where xxxx = xxxx");
while (query.next()) {
QString xxxx = query.value(0).toString();
QString xxxx = query.value(1).toString();
yourWriteCsvAlineFunc(xxxx);
}
[ 此帖被ppdayz在2011-05-02 23:53重新编辑 ]