note 76854 added to function.mssql-fetch-field
| From: | schattenfeld at gmail dot com | Date: | Thu, 02 Aug 2007 14:43:13 +0000 |
| Subject: | note 76854 added to function.mssql-fetch-field | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129125@lists.php.net to get a copy of this message | ||
If you want to describe table like DESCRIBE in MySQL you can use this:
$sql = <<<SQL
SELECT column_name,data_type,column_default,is_nullable
FROM
information_schema.tables AS t
JOIN
information_schema.columns AS c ON
t.table_catalog=c.table_catalog AND
t.table_schema=c.table_schema AND
t.table_name=c.table_name
WHERE
t.table_name='TABLE-NAME'
SQL;
----
Server IP: 84.47.204.3
Probable Submitter: 82.207.103.236
----
Manual Page -- http://www.php.net/manual/en/function.mssql-fetch-field.php
Edit -- https://master.php.net/note/edit/76854
Del: integrated -- https://master.php.net/note/delete/76854/integrated
Del: useless -- https://master.php.net/note/delete/76854/useless
Del: bad code -- https://master.php.net/note/delete/76854/bad+code
Del: spam -- https://master.php.net/note/delete/76854/spam
Del: non-english -- https://master.php.net/note/delete/76854/non-english
Del: in docs -- https://master.php.net/note/delete/76854/in+docs
Del: other reasons-- https://master.php.net/note/delete/76854
Reject -- https://master.php.net/note/reject/76854
Search -- https://master.php.net/manage/user-notes.php