Jump to content

[php + mysql] Imprimir registos a em que o primeiro caracter seja um numero


Recommended Posts


Preciso de imprimir todos os registos de uma tabela cujo o primeiro caracter seja um numero e tou a usar a seguinte instrução:

$sql = mysql_query("SELECT * FROM artista WHERE nome_artista REGEXP [^0-9] ORDER BY nome_artista");

Penso que com REGEXP [^0-9] daria não? A verdade é que nao apresenta nada como resultado com essa query


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.