Jay Roy
asked on
connect by
hi
I am trying to understand what 'connect by' is.
CREATE TABLE t (
rid NUMBER(12),
col1 VARCHAR2(30),
col2 VARCHAR2(300));
CREATE SEQUENCE seq_t_rid;
INSERT INTO t
SELECT seq_t_rid.NEXTVAL, dbms_crypto.randombytes(15 ), dbms_crypto.randombytes(15 0)
FROM DUAL
CONNECT BY LEVEL <= 1000; -- what does CONNECT BY do ?
thanks
I am trying to understand what 'connect by' is.
CREATE TABLE t (
rid NUMBER(12),
col1 VARCHAR2(30),
col2 VARCHAR2(300));
CREATE SEQUENCE seq_t_rid;
INSERT INTO t
SELECT seq_t_rid.NEXTVAL, dbms_crypto.randombytes(15
FROM DUAL
CONNECT BY LEVEL <= 1000; -- what does CONNECT BY do ?
thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
2 connect by level <= 10;
LEVEL
----------
1
2
3
4
5
6
7
8
9
10