Jump to content


FelipeGabriel

Member Since 22/07/2009
Offline Last Active 13/05/2011, 18:42
-----

Posts I've Made

In Topic: Deletar Ultimos Registros De Uma Tabela

20/02/2011, 05:21

Estou executando pelo Nacivat 8,
Dessa forma consegui executar:

delete from statistics where server = '4' order by id asc limit 99


Porem ele deleta 99 registros, e eu preciso mesmo é deletar os ultimos registros (mais antigos) e deixar apenas 100, e não deletar 100, e deixar os outros :unsure:

Sera possivel isso em uma query ?
Agradeço!

In Topic: Deletar Ultimos Registros De Uma Tabela

19/02/2011, 12:52

Bem, deu um erro no MYSQL:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '99' at line 1


Query:

delete from statistics where server = '4' order by id asc limit 1,99


In Topic: Ajuda Com Hexadecimal

19/02/2011, 03:33

Veja se isso ajuda:

http://www.codemiles...imal-t1599.html
http://www.htmlstaff...ver.php?id=3174

In Topic: Erro Ao Importar

16/01/2011, 23:20

Onde esta:

INSERT INTO admin VALUES ( '4', 'Guilherme', 'guilherme', '123', '0', , );

Altere para:

INSERT INTO admin VALUES ( '4', 'Guilherme', 'guilherme', '123', '0', '' , '' )

In Topic: Query Unica

15/01/2011, 21:55

Caranba, não sabia disso,
Muito Obrigado LeoB!

IPB Skin By Virteq