-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitial_users.sql
50 lines (27 loc) · 1.13 KB
/
initial_users.sql
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
43
44
45
46
47
48
49
50
truncate table public.tb_user cascade;
INSERT INTO public.tb_user (tb_user_id, username, md5pwd, active, admin_role) VALUES (1, 'ctadmin', MD5('ctadmin'), true, true);
INSERT INTO public.tb_user (tb_user_id, username, md5pwd, active, admin_role) VALUES (2, 'user1', MD5('pass1'), true, false);
update tb_user
set md5pwd=MD5('oriol')
where username ='oriol'
INSERT INTO public.tb_user (username, md5pwd, active, admin_role) VALUES ('bet', MD5('clarity2020'), true, false);
update tb_user
set md5pwd=MD5('mai5Daon') where username='demo'
INSERT INTO public.tb_user (username, md5pwd, active, admin_role) VALUES ('chris', MD5('Thoh5phe'), true, false);
select count(*) from tb_chemical_space tcs
where tcs.pgp =0 or tcs.pgp=1
select count(*) from tb_chemical_space tcs
where tcs.pgp =0
-- son 3120119
select count(*) from tb_chemical_space tcs
where tcs.pgp=1
-- son 1912542
select count(*) from tb_chemical_space tcs
where not(tcs.pgp =0 or tcs.pgp=1)
-- son 225473
select count(*) from tb_chemical_space tcs
where tcs.pgp <0
--son 13368
select count(*) from tb_chemical_space tcs
where tcs.pgp >1.0
-- son 13368