Re: mysql wildcard

From: Date: Wed, 08 Jan 2003 22:07:04 +0000
Subject: Re: mysql wildcard
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-24674@lists.php.net to get a copy of this message
Well, if that is your only condition, why not use: 'select * from offtime' as your query? I believe the % as a wildcard is standard SQL, so I would *think* it should work in mysql, have you tried it? -Brad Edward Peloke wrote: > I have an query: > > select * from offtime where type='$type' > > then I just pass the type variable to the page. Is there a wildcard in > mysql like there is in sqlserver that I can use to grab all the records? > such as select * from offtime where type='%' would grab all. > > Thanks, > Eddie > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#24674) next »