-
Notifications
You must be signed in to change notification settings - Fork 0
/
.psql_history
61 lines (61 loc) · 1.15 KB
/
.psql_history
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
51
52
53
54
55
56
57
58
59
60
61
\help
\du
\dt
\?
\q
\help
\c nakshatra
\d
SELECT * FROM languages;
GRANT ALL PRIVILEGES ON TABLE languages TO tushar;
GRANT ALL PRIVILEGES ON TABLE languages TO tushar;
\d+
\d+
\d+
\d+
\d+
\d+
\d+
\d+
\d+
\d+
\d+
\d+
\d+
\d+
\d+
\d+ lives
\d+ lives
\d+ lives
\d+ lives
\d+ lives
\d+
truncate transactionStatuses;
truncate transactionStatuse;
truncate transactionStatus;
\d+
TRUNCATE transactionStatuses;
DELETE FROM transactionStatuses;
DELETE FROM transactionStatus;
\dt
delete from transactionStatuses;
delete from public.transactionStatuses;
\d
\d
\d customers
\d wallets
\d wallets
\d
\d+
create table employee(int ssn, name varchar(10), dob date, address varchar(20), dno int);
create table employee(ssn int, name varchar(10), dob date, address varchar(20), dno int);
\d department
\d employee
drop table employee;
create table employee(ssn int,name varchar(10),dob data,address varchar(20),dno int);
create table(ssn int, name varchar(10), dob date,address varchar(20), dno int);
create table bc1;
create table bc1;
\d
\d+ bc1
CREATE TABLE BOOK(BID INTEGER PRIMARY KEY,TITLE VARCHAR(20),PUBYEAR VARCHAR(20),PUBNAME REFERENCES PUBLISHER(NAME) ON DELETE CASCADE);