Yurttas/PL/DBL/oracle/F/02/Movie/MovieExec-def.sql
Revision as of 23:26, 4 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div"> ββREM REM REM MovieExec-def.sql REM REM: DECLARE cursor_handle INTEGER; BEGIN cursor_handle := DBMS_SQL.OP...")
1/*
2REM
3REM
4REM MovieExec-def.sql
5REM
6REM
7*/
8
9DECLARE
10
11 cursor_handle INTEGER;
12
13BEGIN
14
15 cursor_handle := DBMS_SQL.OPEN_CURSOR;
16
17 DBMS_SQL.PARSE(cursor_handle,
18 'CREATE TABLE MovieExec(name VARCHAR2(24),
19 address VARCHAR2(24),
20 cn NUMBER(4) NOT NULL,
21 networth NUMBER(4),
22 PRIMARY KEY(cn))',
23 DBMS_SQL.V7);
24
25 DBMS_SQL.CLOSE_CURSOR(cursor_handle);
26
27END;
28/