DATABASE TEST8

DATABASE TEST8

test8-1

#subwindow
CREATE TABLE test8_00 AS
	SELECT * FROM pub.teacher
	
GRANT ALL ON test8_00 to user202000130088

GRANT select on test8_00 to user202000130088
 
GRANT update on test8_00 to user202000130088

GRANT insert on test8_00 to user202000130088

GRANT delete on test8_00 to user202000130088
#mainwindow
# test SELECT * FROM userb202000130088.test8_00 
CREATE TABLE test8_10 (test varchar(20),age numeric(3))

INSERT INTO test8_10 VALUES('结果1',88)

INSERT INTO test8_10 VALUES('结果2',90)

INSERT INTO test8_10 VALUES('结果3',90)

INSERT INTO test8_10 VALUES('结果4',86)

INSERT INTO test8_10 VALUES('结果5',90)

INSERT INTO test8_10 VALUES('结果6',90)

Update userb202000130088.test8_00  set age=age-10

INSERT INTO test8_10 VALUES('结果7',86)

CREATE TABLE test8_01 AS SELECT * FROM test8_00

INSERT INTO test8_10 VALUES('结果8',86)

INSERT INTO test8_10 VALUES('结果9',76)

INSERT INTO test8_10 VALUES('结果10',86)

posted @ 2021-11-05 12:21  sora_013  阅读(19)  评论(0编辑  收藏  举报