SQL question
Mike Bonner
bonnmike at gmail.com
Mon Sep 17 12:38:46 EDT 2012
Might look here.
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=103033 Theres an
example for locating an exact match that is simple, another
example that uses like, but not sure you'd want to mess with it. (seems to
be a convoluted way to use 'or')
I also found this, --select * from contacts where concat(last_name, ' ',
first_name) like '%re%'--
Maybe you can do something this way.
On Mon, Sep 17, 2012 at 10:29 AM, Klaus on-rev <klaus at major.on-rev.com>wrote:
> Hi Mark,
>
> Am 17.09.2012 um 18:25 schrieb Mark Schonewille <
> m.schonewille at economy-x-talk.com>:
>
> > Hi Klaus,
> >
> > The easy way to do this is to retrieve all column names, use a script
> (PHP or LiveCode) to create the syntax for searching all columns with OR
> statements and use another statement to retrieve the data with your now
> dynamic SQL syntax.
>
> thanks a lot, I was afraid of that :-D
>
> > MySQL has no built-in way to do this.
>
> Ah, and SQLite probably not, too.
>
> > --
> > Best regards,
> >
> > Mark Schonewille
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> klaus at major.on-rev.com
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list