elenco soci ordinato per cognome
This commit is contained in:
parent
a25d0283ca
commit
63ba8e130a
|
@ -10,7 +10,7 @@ SociListTab::SociListTab(QWidget *parent) :
|
|||
|
||||
void SociListTab::on_buttonCerca_clicked() {
|
||||
QSqlQuery query;
|
||||
query.prepare("SELECT id, nome, cognome FROM socio WHERE LOWER(nome) LIKE LOWER(:nome) AND LOWER(cognome) LIKE LOWER(:cognome)");
|
||||
query.prepare("SELECT id, nome, cognome FROM socio WHERE LOWER(nome) LIKE LOWER(:nome) AND LOWER(cognome) LIKE LOWER(:cognome) ORDER BY cognome");
|
||||
query.bindValue( ":nome", QString("%%1%").arg(ui->lineNome->text()) );
|
||||
query.bindValue( ":cognome", QString("%%1%").arg(ui->lineCognome->text()) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue