Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 08-30-2002, 03:42 PM   #1
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:
Can someone tell me how I could do a similar thing in mysql?
Old 08-30-2002, 04:37 PM   #2
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
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
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:

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

Just my 2 cents worth...

good luck


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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:05 PM.

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