Jump to content


Photo

Consulta Sql


  • Faça o login para participar
3 replies to this topic

#1 augustorosauro

augustorosauro

    Turista

  • Usuários
  • 54 posts
  • Sexo:Não informado

Posted 05/05/2005, 17:25

A seguinte consulta funciona :
Select V75 FROM h16CPM ORDER BY V75 DESC

Esta tb ! :
Select V75 FROM h16CPM WHERE V75 >350 limit 3

Esta não !?!?! (Só estou juntando as duas primeiras em 1)
Select V75 FROM h16CPM ORDER BY V75 DESC WHERE V75 > 350 limit 3 :blink:

PQ??? Onde estou errando ???

Vlw, Augusto!

#2 Klaus

Klaus

    @ ubuntu jaunty

  • Ex-Admins
  • 7924 posts
  • Sexo:Masculino
  • Localidade:127.0.0.1

Posted 05/05/2005, 17:28

Coloca o ORDER BY depois do WHERE para ver...
Klaus Paiva
Conheça também: Taperás

#3 augustorosauro

augustorosauro

    Turista

  • Usuários
  • 54 posts
  • Sexo:Não informado

Posted 05/05/2005, 17:39

:D :D :D :D VLW !!!

#4 Stormbringer

Stormbringer

    I'd love to stay with you all

  • Ex-Admins
  • 2927 posts
  • Sexo:Não informado
  • Localidade:Goiânia - GO
  • Interesses:Atualmente: pesquisa e desenvolvimento de web-games

Posted 05/05/2005, 17:55

só pra constar, a gente sempre coloca o link pro PHP.net aqui quando o erro é por sintaxe...

entao pra ilustrar:
http://dev.mysql.com...l/pt/index.html

direto ao ponto:
http://dev.mysql.com...eving-data.html

๑۩۞۩๑Let the Carnage Begin!!๑۩۞۩๑





1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq