Character & is not recognized when performing select to mysql database [closed]

-2

Good morning, please have a problem when making a select to my SQL database, since I do not recognize the '&' character in the query and therefore does not return the records consulted. I appreciate your collaboration.

    
asked by jvega 02.05.2018 в 16:07
source

1 answer

0

If the problem you are facing is that the record has "&"; in some name or in some table the solution could be using:

SELECT * FROM "foo&foo";

In case you need a php statement to call the SQL statement it should be something similar to this:

$query = 'SELECT * FROM "foo&foo"';

Anyway, I recommend you upload code so we can give an answer in conditions and not some answers as unspecific as those I just gave you.

    
answered by 02.05.2018 / 17:53
source