oracle 常用语句

1.cast

CAST(‘Other‘ as NVARCHAR2(30))

 

2.for

declare 
 v_guid char(32);
 channelidStrs  varchar2(4000):=‘‘;
begin
    v_guid:=sys_guid();
    --delete temp_stocktransdetail;
    for c in (select channelid from channel where rownum<9) loop
      channelidStrs :=channelidStrs||,|| c.channelid;
    end loop;
     DBMS_OUTPUT.PUT_LINE(channelidStrs);
    DBMS_OUTPUT.PUT_LINE(v_guid);
    pro_getcalcdaystock(v_guid,332359248d04da0c7e997f82d0e369ca,‘‘,2014-08-30);

    commit;
end;

 

oracle 常用语句

上一篇:简单Sql语句统计每年每个月的数据,每个月为数据的每列,简单SQL练习


下一篇:mariadb数据库中select用法