atnsoft Posted April 24, 2012 Report Share Posted April 24, 2012 Pessoal tem como recomeçar a auto numeração em um campo auto_increment ? Ao apagar a tabela a numeração continua. Uso o HeidiSql 7.0 AtnSoft(Antenor Rabello) - xHarbour 0.99.71 / FwH 7.05 / Verce C. Procópio - PR Quote Link to comment Share on other sites More sharing options...
atnsoft Posted April 24, 2012 Author Report Share Posted April 24, 2012 Pessoal tem como recomeçar a auto numeração em um campo auto_increment ? Ao apagar a tabela a numeração continua. Uso o HeidiSql 7.0 AtnSoft(Antenor Rabello) - xHarbour 0.99.71 / FwH 7.05 / Verce C. Procópio - PR Quote Link to comment Share on other sites More sharing options...
Luisão Posted April 24, 2012 Report Share Posted April 24, 2012 Tente assim: Alter Table tabela Auto_increment = 0; -- Luis Fernando Jr. FWH8.01 + SQLLIB 1.9d + xHB 1.10 + xDev 0.65 + @SAY Quote Link to comment Share on other sites More sharing options...
evandro Posted April 24, 2012 Report Share Posted April 24, 2012 Olá, Ao apagar os dados em vez de dar o comando delete from tabela dê o comando truncate table tabela. Claro que só serve se for apagar todos os dados da tabela. []s, Evandro G. de Paula Curvelo - MG evandro@skillnet.com.br (Escr. - na Cidade) imortal@skillnet.com.br (Res. - na Roça) FWH 9.01+PellesC+MyMake+xHarbour.org 1.00+SqlLib Quote Link to comment Share on other sites More sharing options...
atnsoft Posted April 25, 2012 Author Report Share Posted April 25, 2012 Obrigado pelas respostas, mas nenhuma deu certo. O numero ainda permanece. Já tá em 678012. AtnSoft(Antenor Rabello) - xHarbour 0.99.71 / FwH 7.05 / Verce C. Procópio - PR Quote Link to comment Share on other sites More sharing options...
kleyber Posted April 25, 2012 Report Share Posted April 25, 2012 Tente: Alter Table tabela Auto_increment = 1; Kleyber Derick xHarbour 1.1.0 + FWH 8.02 + xDevStudio + SQLLIB (98) 8162-1301 / (98) 3217-8162 Visite São LuÃs - MA A Ilha dos Amores Quote Link to comment Share on other sites More sharing options...
atnsoft Posted April 26, 2012 Author Report Share Posted April 26, 2012 Bingo Kleyber. Valeu. Resolvido AtnSoft(Antenor Rabello) - xHarbour 0.99.71 / FwH 7.05 / Verce C. Procópio - PR Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.