Are those expressions the same?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Perfidus
Forum Contributor
Posts: 114
Joined: Sun Nov 02, 2003 9:54 pm

Are those expressions the same?

Post by Perfidus »

Are those expresions exactly the same?

Code: Select all

SELECT * from db1, db2 WHERE (db1.Ref=db2.Ref AND Localidad='$Localidad' AND Pepino != '0')

Code: Select all

$llegada=Pepino;
SELECT * from db1, db2 WHERE (db1.Ref=db2.Ref AND Localidad='$Localidad' AND $llegada != '0')
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

In theory yes - but since you're asking the question I assume it doesn't work for you for some reason. If so, please post the offending code and any error messages you are receiving.

Mac
Post Reply