docker run --name mogdb \--privileged=true \--detach \--env GS_PASSWORD=Admin@1234 \--publish 15400:5432 \swr.cn-east-3.myhuaweicloud.com/enmotech/mogdb:2.0.1_amd
也可以使用墨天轮在线实训平台进行体验,链接如下:https://www.modb.pro/market/162869。
Forbid remote connection with initial user.

06 如果不使用VIP,应用层是否支持主备自动连接呢?
CREATE GLOBAL TEMPORARY TABLE test_gtt_table (id integer,lbl text) ON COMMIT PRESERVE ROWS;
CREATE GLOBAL TEMPORARY TABLE test_gtt_table (id integer,lbl text) ON COMMIT DELETE ROWS;
create package employee_management asc_empno numeric = 9999;function hire_emp (name varchar, job varchar,mgr numeric, hiredate timestamp,sal numeric, comm numeric,deptno numeric) return numeric;procedure fire_emp (emp_id numeric);end employee_management;/
create package body employee_management asfunction hire_emp (name varchar, job varchar, mgr numeric, hiredate timestamp, sal numeric, comm numeric, deptno numeric) return numeric asdeclarenew_empno numeric;beginselect nextval('emp_empno_seq') into new_empno;insert into emp values (new_empno, name, job, mgr,hiredate, sal, comm, deptno);return new_empno;end;procedure fire_emp(emp_id in number)asbegindelete from emp where empno = emp_id;end;end employee_management;/



文章转载自云和恩墨,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




