Unix Technical Forum

Information schema question.

This is a discussion on Information schema question. within the MySQL General forum forums, part of the MySQL category; --> Hi all! Well, question is how could I to retrieve information about types supported . In PostgreSQL the query ...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-20-2008, 12:47 PM
Carlos Savoretti
 
Posts: n/a
Default Information schema question.

Hi all!

Well, question is how could I to retrieve information about
types supported . In PostgreSQL the query would be:

------------------------------------------------------------------
SELECT pg_type.oid, typname, usename, obj_description(pg_type.oid)
FROM pg_type, pg_user
WHERE typowner=usesysid AND typrelid = 0 AND typname !~ '^_'
------------------------------------------------------------------

Is there some way to obtain equivalent columns from INFORMATION_SCHEMA,
as similar as possible ?

Thanks in advance...

Carlos Savoretti.
----------------



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-20-2008, 12:47 PM
Sebastian Mendel
 
Posts: n/a
Default Re: Information schema question.

Carlos Savoretti schrieb:
> Hi all!
>
> Well, question is how could I to retrieve information about
> types supported.



IMHO, no

--
Sebastian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-20-2008, 12:47 PM
Rob Wultsch
 
Posts: n/a
Default Re: Information schema question.

On Tue, Mar 18, 2008 at 9:58 AM, Carlos Savoretti
<csavoretti@clubsanjorge.com.ar> wrote:
> Hi all!
>
> Well, question is how could I to retrieve information about
> types supported . In PostgreSQL the query would be:
>
> ------------------------------------------------------------------
> SELECT pg_type.oid, typname, usename, obj_description(pg_type.oid)
> FROM pg_type, pg_user
> WHERE typowner=usesysid AND typrelid = 0 AND typname !~ '^_'
> ------------------------------------------------------------------
>
> Is there some way to obtain equivalent columns from INFORMATION_SCHEMA,
> as similar as possible ?

I do not think you can use the information schema to get this
information. However you can use help:

For server side help, type 'help contents'

mysql> help DATA TYPES
You asked for help about help category: "Data Types"
For more information, type 'help <item>', where <item> is one of the following
topics:
AUTO_INCREMENT
BIGINT
BINARY
BIT
BLOB
BLOB DATA TYPE
BOOLEAN
CHAR
CHAR BYTE
DATE
DATETIME
DEC
DECIMAL
DOUBLE
DOUBLE PRECISION
ENUM
FLOAT
INT
INTEGER
LONGBLOB
LONGTEXT
MEDIUMBLOB
MEDIUMINT
MEDIUMTEXT
SET DATA TYPE
SMALLINT
TEXT
TIME
TIMESTAMP
TINYBLOB
TINYINT
TINYTEXT
VARBINARY
VARCHAR
YEAR DATA TYPE

mysql> help INT
Name: 'INT'
Description:
INT[(M)] [UNSIGNED] [ZEROFILL]

A normal-size integer. The signed range is -2147483648 to 2147483647.
The unsigned range is 0 to 4294967295.

URL: http://dev.mysql.com/doc/refman/5.0/...-overview.html

--
Rob Wultsch
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:34 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com