Two conditions for one field in MySQL WHERE -
Is a field for me on a field in MySQL? ... where is type and I want to do this:
WHERE `type`! = 'Name' and 'type`! = 'Photo' I'm expecting a better way to do this, so can I compare type for two possible options?
Thank you!
If you mean and - you probably do this because, or will always match :) -
type WHERE `! = 'Name' and 'type`! = 'Photo' Then
where 'type' is not ('name', 'photo') < P> It should be cut.
Comments
Post a Comment