Re: Any method to get primary key matching a given value ?
| From: | Karl DeSaulniers | Date: | Thu, 18 Aug 2016 21:53:33 +0000 |
| Subject: | Re: Any method to get primary key matching a given value ? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-49109@lists.php.net to get a copy of this message | ||
Hi Ratin,
Going to take a stab at this one.
Have you looked into INFORMATION_SCHEMA.COLUMNS for your query?
Might be where you want to look for what you are trying.
Sorry can't help more.
Best,
Karl DeSaulniers
Design Drumm
http://designdrumm.com
> On Aug 18, 2016, at 1:27 PM, Ratin <ratin3@gmail.com> wrote:
>
> I'm writing the generic get that works on different tables having different
> primary keys but the argument of get is always the primary key , i.e. get
> request is -
>
> get (column name, value)
>
> the value is always the primary key value.
>
> It looks like it would be a pretty standard method but I cant find a method
> like that. Anybody have any clue?
>
> Thanks
>
> Ratin