CREATE TABLE IF NOT EXISTS
> CREATE TABLE IF NOT EXISTS TEAMS
> (TEAMNO INTEGER NOT NULL PRIMARY KEY,
> EmployeeNO INTEGER NOT NULL,
> DIVISION CHAR(6) NOT NULL);
CREATE TABLE IF NOT EXISTS Companies (
id int,
name varchar(50),
address text,
email varchar(50),
phone varchar(10)
);
create table if not exists schema_uploadfile.tbl_uploadfile(
id serial primary key,
file_name varchar(255) unique,
file_type varchar(30),
grp_data bytea
);
declare
nCount NUMBER;
v_sql LONG;
begin
SELECT count(*) into nCount FROM dba_tables where table_name = 'EMPLOYEE';
IF(nCount <= 0)
THEN
v_sql:='
create table EMPLOYEE
(
ID NUMBER(3),
NAME VARCHAR2(30) NOT NULL
)';
execute immediate v_sql;
END IF;
end;
Code Example |
---|
Sql :: sql datetime as date |
Sql :: mysql get yesterday |
Sql :: get table column names sql ssms |
Sql :: install mysql powershell |
Sql :: mysql remove ubuntu |
Sql :: oracle next run dates |
Sql :: add mysql to path |
Sql :: reset auto increment sql server |
Sql :: oracle failed login attempts |
Sql :: mysql id reset |
Sql :: sql server convert date to int |
Sql :: oracle alert log location |
Sql :: add many column to sap iq table |
Sql :: check message id sql server |
Sql :: pop sql insert value into |
Sql :: oracle get trigger ddl |
Sql :: table infromation in sql server |
Sql :: oracle nls instance |
Sql :: postgresql show owner of database |
Sql :: sql server user permissions and roles |
Sql :: operadores en postgresql |
Sql :: sql sort column by date |
Sql :: mysql drop trigger |
Sql :: select count from table mysql |
Sql :: nvl2 syntax |
Sql :: sql fillna |
Sql :: sql myisam vs innodb |
Sql :: sysdate in sql |
Sql :: how to rename column in sql |
Sql :: oracle alter tablespace add datafile autoextend max size |