-
Notifications
You must be signed in to change notification settings - Fork 0
/
sql-queries.txt
42 lines (30 loc) · 1.2 KB
/
sql-queries.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
**************************************************************
===========creation of city table===============================
**************************************************************
-- Table: public.citymaster
-- DROP TABLE public.citymaster;
CREATE TABLE public.citymaster
(
cityid integer NOT NULL DEFAULT nextval('citymaster_cityid_seq'::regclass),
cityname character varying(200) COLLATE pg_catalog."default",
CONSTRAINT citymaster_pkey PRIMARY KEY (cityid)
)
TABLESPACE pg_default;
ALTER TABLE public.citymaster
OWNER to postgres;
**************************************************************
============creation of hotel table============================
**************************************************************
-- Table: public.hotelmaster
-- DROP TABLE public.hotelmaster;
CREATE TABLE public.hotelmaster
(
hotelid integer NOT NULL DEFAULT nextval('hotelmaster_hotelid_seq'::regclass),
hotelname character varying(200) COLLATE pg_catalog."default",
cityid integer,
CONSTRAINT hotelmaster_pkey PRIMARY KEY (hotelid)
)
TABLESPACE pg_default;
ALTER TABLE public.hotelmaster
OWNER to postgres;
**************************************************************