Tuesday, June 12, 2007

oracle command examples

Sometimes it takes me a while to look for the SQL command I need in Oracle. Just record something I got.
(1) displaying tables in a schema:
select * from user_tables;
(2) displaying column information for a relation:
describe wms_notif;
(3) check entries without corresponding entries in the other table:
select DG_ANALYSIS_MONITOR_ID from DG_ANALYSIS_MONITORwhere DG_ANALYSIS_MONITOR.DG_ANALYSIS_MONITOR_ID not in (select BAM_MONITOR_LAST_READING.DG_ANALYSIS_MONITOR_ID from BAM_MONITOR_LAST_READING);

1 comment:

Anonymous said...

Oi, achei teu blog pelo google tá bem interessante gostei desse post. Quando der dá uma passada pelo meu blog, é sobre camisetas personalizadas, mostra passo a passo como criar uma camiseta personalizada bem maneira. Até mais.