mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
update of old PL/SQL PLpgSQL and SQLPL patch based on current version
see [linguist] add support for oracle PLSQL (#1003)
This commit is contained in:
21
samples/SQL/create_stuff.sql
Normal file
21
samples/SQL/create_stuff.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
CREATE TABLE x AS SELECT * FROM DUAL;
|
||||
|
||||
CREATE TABLE y (
|
||||
col1 NUMBER NOT NULL ,
|
||||
col2 VARCHAR2(200),
|
||||
col3 DATE,
|
||||
col4 TIMESTAMP WITH TIME ZONE NOT NULL
|
||||
);
|
||||
|
||||
|
||||
CREATE USER username IDENTIFIED BY password;
|
||||
|
||||
GRANT CONNECT, RESOURCE TO username;
|
||||
|
||||
|
||||
GRANT CREATE TYPE TO username;
|
||||
GRANT CREATE PROCEDURE TO username;
|
||||
GRANT CREATE TABLE TO username;
|
||||
GRANT CREATE VIEW TO username;
|
||||
|
||||
13
samples/SQL/drop_stuff.sql
Normal file
13
samples/SQL/drop_stuff.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
drop procedure who_called_me;
|
||||
drop package body linguist_package;
|
||||
drop package linguist_package;
|
||||
drop function functionname1;
|
||||
|
||||
drop table x;
|
||||
drop table y cascade;
|
||||
|
||||
drop type typename1;
|
||||
drop type typename2;
|
||||
|
||||
drop view viewname1;
|
||||
drop view viewname2;
|
||||
3
samples/SQL/dual.sql
Normal file
3
samples/SQL/dual.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
--this is the most basic oracle sql command
|
||||
select * from dual;
|
||||
|
||||
Reference in New Issue
Block a user