RE: [PHP-WIN] RE: select top 1 * WAS: [PHP-WIN] [ANNOUNCEMENT] ODBTP 1.1.1 Released
| From: | Gryffyn, Trevor | Date: | Tue, 08 Jun 2004 15:01:25 +0000 |
| Subject: | RE: [PHP-WIN] RE: select top 1 * WAS: [PHP-WIN] [ANNOUNCEMENT] ODBTP 1.1.1 Released | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-23938@lists.php.net to get a copy of this message | ||
If you have access (not sure if this is universal READ or if my db
admins just didn't secure this properly) you can do this:
select * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = '$tablename'
All the information about the table you'd need should be in there.
-TG
> -----Original Message-----
> From: Svensson, B.A.T. (HKG) [mailto:B.A.T.Svensson@lumc.nl]
> Sent: Thursday, June 03, 2004 4:46 PM
> To: 'php-windows@lists.php.net'
> Subject: [PHP-WIN] RE: select top 1 * WAS: [PHP-WIN]
> [ANNOUNCEMENT] ODBTP 1.1.1 Released
>
>
> Does anybody know if that is faster than doing
> SELECT * FROM <some table> WHERE 1 = 2 ?
>
> -----Original Message-----
> From: Gerardo Rojas
> To: Robert Twitty; php-db@lists.php.net; php-windows@lists.php.net
> Sent: 3-6-2004 17:14
> Subject: RE: [PHP-WIN] [ANNOUNCEMENT] ODBTP 1.1.1 Released
>
> Robert,
>
> Do you have an example of pulling the Column types from an MS
> Sql query?
> For example: select top 1 * from mytablename.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>