|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Please don't flame me too hard, I'm new to Oracle, so excuse my ignorance.
![]() How do I get Oracle (9i) to show me the structure of a specific table along the same lines that the following mysql statement would: mysqlshow DBname tablename; If you need any more info, please let me know. Thanks for the help! |
|
#2
|
|||
|
|||
|
you could try
Code:
select * from user_tables; and/or select * from cols; These returns tons of information. |
|
#3
|
|||
|
|||
|
Quote:
I need it to return something like: Code:
CREATE TABLENAME {
blah varchar2(50),
blah2 varchar(25)
}
|
|
#4
|
||||
|
||||
|
Google knows the answer
Note that a more appropriate subject would have been something like: "How to retrieve DDL (data definition language) for table?"
__________________
My blog Tutorials about OSS databases, DBMonster ... Contribute to OSS Development, fill bug reports! Developer Shed eSupport Commented my.ini/my.cnf (ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins Random data (with a bias) Last edited by pabloj : March 15th, 2005 at 10:09 AM. |
|
#5
|
|||
|
|||
|
Quote:
Therein lied the problem. The syntax is pretty different from MySQL to Oracle, so I didn't even know what to search for. Trust me, forums are my last resort. Regardless, thanks for the help. |
|
#6
|
||||
|
||||
|
The problem should be solved in MySQL 5, it will implement proper system views (like Oracle and other databases).
|
|
#7
|
|||
|
|||
|
simple answer is:
describe "your table name"; (without quotes eg if u have table called: student do: describe student; simple |
|
#8
|
|||
|
|||
|
Quote:
That doesn't do what I want. I want it to spit out the table creation code. Not to describe the columns within a table. |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > mysqlshow equivalent? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|