MySQL - select a,b from tabla where a=xx no funciona

 
Vista:

select a,b from tabla where a=xx no funciona

Publicado por alejandro (1 intervención) el 31/01/2008 02:14:33
Hola amigos

Estoy desorientado, poseo dos lineas:

set @xx=1;
select als_apers,als_aleg,als_aape from tbl_als where als_aleg=@xx;

si @xx lo reemplazo por el numero 1 funciona si le dejo la variable no

Alguien me puede explicar esto ???

Tante gratzie
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder