-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommand_script.txt
32 lines (19 loc) · 1.08 KB
/
command_script.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
POSTGRESQL COMANDS FOR TESTING
-- select * from information_schema.columns where table_schema='public' and table_name in (select tablename from pg_catalog.pg_tables where schemaname='public') order by table_name, ordinal_position
-- select * from user_list
-- delete from user_list where user_id=1
-- select * from course
-- select * from question
-- delete from question where 1=1
-- alter table question alter column q_id type int
-- select * from test
-- delete from test where test_id = 'DemoT1'
javac -classpath postgresql-42.5.0.jar Test.java
POSTGRESQL IMP Commands
-- select * from information_schema.columns where table_schema='public' and table_name in (select tablename from pg_catalog.pg_tables where schemaname='public') order by table_name, ordinal_position
-- select * from information_schema.columns where table_schema='public'
-- select * from pg_catalog.pg_tables where schemaname='public'
-- describe table public.course
-- insert into public.credentials values ('SHM','Shrutiman')
-- select * from course where 1=2
-- SELECT * FROM pg_settings