目前分類:SQL / PL/SQL (30)

瀏覽方式: 標題列表 簡短摘要

JSON_ELEMENT_T: the supertype for the JSON_OBJECT_T, JSON_ARRAY_T, JSON_SCALAR_T and JSON_KEY_LIST object types.
Each of them extends JSON_ELEMENT_T as a subtype.
An instance of type JSON_ELEMENT_T, which is an in-memory representation of the JSON data, can be constructed only by parsing JSON text.

文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

CREATE TABLE json_test_tab (
  id    RAW(16) NOT NULL,
  data  CLOB,

DanBrother 發表在 痞客邦 留言(0) 人氣()

Oracle Password Policy Checking PL/SQL Function Using REGEXP_COUNT

create or replace function pwd_policy_check_fnc(pwd varchar2)
return pls_integer

DanBrother 發表在 痞客邦 留言(0) 人氣()

Reading Loaded Files from XML DB through Oracle Embedded PL/SQL Gateway
 

type myfilelist.bat

文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

Building a simple webpage using Embedded PL/SQL Gateway

-- Create a demo user
create user demo_user identified by demo_user default tablespace users temporary tablespace temp;

文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

Using Oracle REGEXP_SUBSTR function & CONNECT BY LEVEL clause to Decompose String

 

col String format a10

DanBrother 發表在 痞客邦 留言(0) 人氣()

Change public synonyms to private synonyms in Oracle

The following anonymous PL/SQL block will change the public synonyms granted by SCOTT to private synonyms:

. oraenv

DanBrother 發表在 痞客邦 留言(0) 人氣()

Pragma Serially_Reusable Practice:

According to Oracle® Database PL/SQL Language Reference 11g Release 1 (11.1),

DanBrother 發表在 痞客邦 留言(0) 人氣()

Upload File using PL/SQL Web Toolkit

Step 1: Create a document storage table called “UPLOAD_FILES
 

DanBrother 發表在 痞客邦 留言(0) 人氣()

Use of Quote operator "q" in Oracle 11g

The following SQL statements will produce the same results.

DanBrother 發表在 痞客邦 留言(0) 人氣()

Check If a "number" is an integer or a float (Oracle PL/SQL):

declare
v_is_int number(1);

DanBrother 發表在 痞客邦 留言(0) 人氣()

-----------------------------------------------------------------------------------
-- Convert Rows into Columns using Oracle PIVOT
-----------------------------------------------------------------------------------

DanBrother 發表在 痞客邦 留言(0) 人氣()

Handling PL/SQL Error Message with DBMS_UTILITY.FORMAT_ERROR_STACK and DBMS_UTILITY.FORMAT_ERROR_BACKTRACE

-- Old Way
set serveroutput on size 100000

DanBrother 發表在 痞客邦 留言(0) 人氣()

One thing neat about SQL*Plus is that it can even generate HTML file in addition to text file.

Here's the example:

DanBrother 發表在 痞客邦 留言(0) 人氣()

PL/SQL BULK COLLECT Using LIMIT Clause Practice:


DanBrother 發表在 痞客邦 留言(0) 人氣()

The first example demonstrates a way to joining a PL/SQL table with a normal table using built-in data type.

create table student_table

DanBrother 發表在 痞客邦 留言(0) 人氣()

Function to Get A Random Alphanumeric String:

create or replace function get_random_alphanumeric_string

DanBrother 發表在 痞客邦 留言(0) 人氣()

Oracle RANK() and DENSE_RANK() FUNCTION PRACTICE

-- Create a table named "rank_practice" containing student point information
create table rank_practice

DanBrother 發表在 痞客邦 留言(0) 人氣()

Oracle LISTAGG Analystic Function (11gR2)
Purpose: To aggregate data from a number of rows into a single row.

SQL> desc emp

DanBrother 發表在 痞客邦 留言(0) 人氣()

The following example demonstrates three ways to display current session sid of the user - SCOTT :

conn / as sysdba
accept pwd hide

DanBrother 發表在 痞客邦 留言(0) 人氣()

1 2
Close

您尚未登入,將以訪客身份留言。亦可以上方服務帳號登入留言

請輸入暱稱 ( 最多顯示 6 個中文字元 )

請輸入標題 ( 最多顯示 9 個中文字元 )

請輸入內容 ( 最多 140 個中文字元 )

reload

請輸入左方認證碼:

看不懂,換張圖

請輸入驗證碼