Jump to content

Question

7 answers to this question

Recommended Posts

  • 0
Em 26/04/2016 at 02:03, Night Wolf disse:

vc tentou executar ela assim? dá erro? qual? tenta alterar o INTEGER para INT

Erro:

mysql_real_query(): SELECT `player_id`, `value` FROM `player_storage` WHERE `key` = 102086 ORDER BY cast(value as INT) DESC; - MYSQL ERROR: 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 'INT) DESC' at line 1 (1064)

Link to comment
https://xtibia.com/forum/topic/240565-pequena-duvida/#findComment-1692279
Share on other sites

  • 0
7 horas atrás, dalvorsn disse:

No mysql atual pelo ou tu usa SIGNED ou UNSIGNED, INTEGER não é reconhecido como um tipo valido

 

http://dev.mysql.com/doc/refman/5.7/en/cast-functions.html

Muito obrigado, consegui :D

Link to comment
https://xtibia.com/forum/topic/240565-pequena-duvida/#findComment-1692325
Share on other sites

×
×
  • Create New...