oracle生成報表語句

2021-05-22 23:14:51 字數 806 閱讀 3078

e.g 1

set linesize 200

set pagesize 200

set term off feedback off

set markup html on entmap on preformat off

spool f:people_report.xls

select * from people;

spool off

set term on feedback on

set markup html off entmap off preformat on

e.g 2

set echo off

set verify off

ttitle 'customer history report'

break on member skip 1 on report

select   m.first_name||' '||m.last_name member, t.title, 

r.book_date, r.act_ret_date - r.book_date duration

from     member m, title t, rental r

where     r.member_id = m.member_id 

and     r.title_id = t.title_id

order by   member;

clear break

ttitle off

set verify on

set echo on

Oracle 建表語句

create table table name id numner 12 text verchar2 255char not null char型別,乙個漢字佔乙個長度 pid varchar2 32 byte notnull byte型別,utf8乙個漢字佔大約兩個長度 status number...

oracle刪除表語句

刪除表 記錄和結構 的語名delete truncate drop delete 刪除資料表裡記錄的語句 delete from表名 where 條件 注意 刪除記錄並不能釋放oracle裡被占用的資料塊表空間.它只把那些被刪除的資料塊標成unused.如果確實要刪除乙個大表裡的全部記錄,可以用 t...

Oracle標準建表語句

create table 建表 create table outln.customer id varchar2 32 default sys guid not null,cust id varchar2 64 cust name varchar2 255 id no varchar2 64 mobi...