LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-30-2002, 03:42 PM   #1
jISV
Member
 
Registered: Feb 2002
Location: England
Distribution: MDK8.2
Posts: 128

Rep: Reputation: 15
MySQL question


In oracle, I can run something like this..

PHP Code:
select TABLE_NAMECOLUMN_NAMEDATA_TYPEOWNER from ALL_TAB_COLUMNS where USER 'bill'
Can someone tell me how I could do a similar thing in mysql?
Thanks.
 
Old 08-30-2002, 04:37 PM   #2
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
Perhaps I've missed the point: This is valid SQL, even MySQL should successfully complete the query.

What error are you seeing?
 
Old 08-31-2002, 02:27 PM   #3
jISV
Member
 
Registered: Feb 2002
Location: England
Distribution: MDK8.2
Posts: 128

Original Poster
Rep: Reputation: 15
The problem is that oracle stores these details in the table all_tab_columns, so you can easily find out any information about database contents. This is what I'm trying to do. The result is shown.

PHP Code:
mysqlselect table_namecolumn_namedata_typeowner from all_tab_columns
PHP Code:
ERROR 1146Table 'changemgmt.all_tab_columns' doesn't exist 
I've looked, but I don't know where mysql holds similar type of information.
 
Old 09-06-2002, 11:24 AM   #4
OldNewUser
LQ Newbie
 
Registered: Aug 2002
Location: Cincinnati, Ohio, USA
Distribution: Redhat 7.3
Posts: 5

Rep: Reputation: 0
Meta Data

In a quick look at MySQL documentation I thought this section might help you:

http://www.mysql.com/products/myodbc...ta_Information

It does not look as easy to do it under MySQL as in Oracle.

Just my 2 cents worth...

good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
MySQL question... kith Linux - General 3 03-06-2004 06:40 PM
MySQL Question NoBrains Linux - Software 2 03-01-2004 10:10 PM
MySQL question TraCe66 Linux - Newbie 11 07-15-2003 02:35 PM
MySQL question ascii2k Linux - General 1 03-27-2002 04:48 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration