Click here to Skip to main content
15,898,035 members
Home / Discussions / Database
   

Database

 
QuestionDuplicate Remover Pin
Vimalsoft(Pty) Ltd24-Nov-09 1:42
professionalVimalsoft(Pty) Ltd24-Nov-09 1:42 
AnswerRe: Duplicate Remover Pin
Niladri_Biswas24-Nov-09 2:38
Niladri_Biswas24-Nov-09 2:38 
GeneralRe: Duplicate Remover Pin
Vimalsoft(Pty) Ltd24-Nov-09 2:42
professionalVimalsoft(Pty) Ltd24-Nov-09 2:42 
GeneralRe: Duplicate Remover [modified] Pin
Niladri_Biswas24-Nov-09 3:22
Niladri_Biswas24-Nov-09 3:22 
AnswerRe: Duplicate Remover Pin
Mycroft Holmes24-Nov-09 18:20
professionalMycroft Holmes24-Nov-09 18:20 
QuestionExporting a report on tables' structure in Oracle Pin
Muammar©23-Nov-09 4:30
Muammar©23-Nov-09 4:30 
AnswerRe: Exporting a report on tables' structure in Oracle Pin
David Mujica23-Nov-09 5:12
David Mujica23-Nov-09 5:12 
GeneralRe: Exporting a report on tables' structure in Oracle Pin
Muammar©23-Nov-09 7:09
Muammar©23-Nov-09 7:09 
Exactly what I've done
CREATE OR REPLACE VIEW schema_tables AS
SELECT   o.object_type AS object_type
,        c.table_name AS table_name
,        c.column_id AS column_id
,        c.column_name AS column_name
,        DECODE(c.nullable,'N','NOT NULL','') AS nullable
,        DECODE(c.data_type
,          'BFILE'        ,'BINARY FILE LOB'
,          'BINARY_FLOAT' ,c.data_type
,          'BINARY_DOUBLE',c.data_type
,          'BLOB'         ,c.data_type
,          'CLOB'         ,c.data_type
,          'CHAR'         ,DECODE(NVL(c.data_length,0),0,c.data_type
,        c.data_type||'('||c.data_length||')')
,          'DATE'         ,c.data_type
,          'FLOAT'        ,c.data_type
,          'LONG RAW'     ,c.data_type
,          'NCHAR'        ,DECODE(NVL(c.data_length,0),0,c.data_type
,        c.data_type||'('||c.data_length||')')
,          'NVARCHAR2'    ,DECODE(NVL(c.data_length,0),0,c.data_type
,        c.data_type||'('||c.data_length||')')
,          'NUMBER'       ,DECODE(NVL(c.data_precision||c.data_scale,0)
,        0,c.data_type
,        DECODE(NVL(c.data_scale,0),0
,        c.data_type||'('||c.data_precision||')'
,        c.data_type||'('||c.data_precision||','|| c.data_scale||')'))
,          'RAW'          ,DECODE(NVL(c.data_length,0),0,c.data_type
,        c.data_type||'('||c.data_length||')')
,          'VARCHAR'      ,DECODE(NVL(c.data_length,0),0,c.data_type
,        c.data_type||'('||c.data_length||')')
,          'VARCHAR2'     ,DECODE(NVL(c.data_length,0),0,c.data_type
,        c.data_type||'('||c.data_length||')')
,          'TIMESTAMP'     , c.data_type,c.data_type) AS data_type
,        CASE WHEN c.data_default IS NULL THEN 'N' ELSE 'Y' END AS data_default
FROM     user_tab_columns c,user_objects o
WHERE    o.object_name = c.table_name
ORDER BY c.table_name, c.column_id
/
set feed off markup html on spool on
/
spool 'c:\filename.htm'
/
select * from schema_tables
/
spool off
/
set markup html off spool off
/



AnswerRe: Exporting a report on tables' structure in Oracle Pin
Jörgen Andersson23-Nov-09 21:04
professionalJörgen Andersson23-Nov-09 21:04 
QuestionHow to take a number which compare nearby some numbers ? Pin
Golden Jing22-Nov-09 22:33
Golden Jing22-Nov-09 22:33 
AnswerRe: How to take a number which compare nearby some numbers ? Pin
Blue_Boy22-Nov-09 23:03
Blue_Boy22-Nov-09 23:03 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Golden Jing22-Nov-09 23:13
Golden Jing22-Nov-09 23:13 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Blue_Boy22-Nov-09 23:29
Blue_Boy22-Nov-09 23:29 
AnswerRe: How to take a number which compare nearby some numbers ? Pin
Shameel22-Nov-09 23:47
professionalShameel22-Nov-09 23:47 
AnswerRe: How to take a number which compare nearby some numbers ? Pin
Luc Pattyn23-Nov-09 1:36
sitebuilderLuc Pattyn23-Nov-09 1:36 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Shameel23-Nov-09 2:16
professionalShameel23-Nov-09 2:16 
AnswerRe: How to take a number which compare nearby some numbers ? Pin
Shameel23-Nov-09 4:00
professionalShameel23-Nov-09 4:00 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Luc Pattyn23-Nov-09 4:28
sitebuilderLuc Pattyn23-Nov-09 4:28 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Roger Wright24-Nov-09 19:04
professionalRoger Wright24-Nov-09 19:04 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Luc Pattyn25-Nov-09 2:21
sitebuilderLuc Pattyn25-Nov-09 2:21 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Roger Wright25-Nov-09 2:47
professionalRoger Wright25-Nov-09 2:47 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Luc Pattyn25-Nov-09 2:52
sitebuilderLuc Pattyn25-Nov-09 2:52 
AnswerRe: How to take a number which compare nearby some numbers ? [modified] Pin
Niladri_Biswas23-Nov-09 3:27
Niladri_Biswas23-Nov-09 3:27 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Golden Jing23-Nov-09 21:36
Golden Jing23-Nov-09 21:36 
AnswerRe: How to take a number which compare nearby some numbers ? Pin
Shameel23-Nov-09 4:59
professionalShameel23-Nov-09 4:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.