標籤:在SQLPLUS下,實現中-英字元集轉換alter session set nls_language=‘AMERICAN‘;alter session set nls_language=‘SIMPLIFIED CHINESE‘; 主要知識點:一、有關表的操作1)建表create table test as select * from dept; --從已知表複製資料和結構create table test as select * from dept where 1=2;
標籤:--查出SID名字select * from v$access where object =‘PKG_SMSSEND_PROC‘;--通過sid查出spidselect spid,osuser, s.program from v$session s,v$process p where s.paddr=p.addr and s.sid=(select sid from v$access where object
標籤:DECLARE CURSOR recordCursor IS SELECT longitude,latitude FROM WR_WIUST_B_SEC FOR UPDATE;recordRow recordCursor % ROWTYPE;BEGIN OPEN recordCursor; LOOP FETCH recordCursor INTO recordRow;
標籤:一, 複製表結構及資料create table z_xudebiao_test as select * from v_topic v where v.adddate > to_date(‘2016-01-01 00:00:00‘,‘yyyy-mm-dd hh24:mi:ss‘);二, 複製表結構create table z_xudebiao_test as select * from v_topic v where 1=2或者create
標籤:本文轉自:http://www.cnblogs.com/ycdx2001/p/3502495.htmlwith temp as(select ‘China‘ nation ,‘Guangzhou‘ city from dual union allselect ‘China‘ nation ,‘Shanghai‘ city from dual union allselect ‘China‘ nation ,‘Beijing‘ city from dual union allselect