-
Notifications
You must be signed in to change notification settings - Fork 1
Comando RR
JeanUFSCar edited this page Dec 16, 2019
·
5 revisions
O comando RR é utilizado para remover os registros da última busca feita.
O formato para remoção dos registros da última busca é a seguinte:
RR tabela
tabela = nome da tabela que será removidos os valores dos registros da última busca
A inicialização do comando é dada pelo seguinte código:
else if (palavra_chave == "RR") {
string tabela = comando.retornaPalavraDeInput(input, ' ');
if (tabela.length() > 0) {
if (tab_ultima_busca == tabela)
comando.removeRegistrosUltimaBusca(tabela);
else
cout << "Erro: a ultima busca nao corresponde a tabela:" << tabela << endl;
} else {
cout << "Erro: entrada incompleta." << "\n";
}
}