
postgresql
Yjiokm
记录一些我不熟的东西方便以后来查
展开
-
postgresql 用函数返回表多行
postgresql 用函数返回表多行postgresql 用函数返回表多行1. 这种写法返回需要声明 t(id int4, name varchar...) 必须带类型2. 无需返回声明,但是字段重名需重命名 postgresql 用函数返回表多行 1. 这种写法返回需要声明 t(id int4, name varchar…) 必须带类型 例子 drop function if exists public.xzqh_get_siblings_and_children(in varchar); create原创 2021-10-07 16:06:59 · 947 阅读 · 0 评论 -
postgis 常用 sql 20210707
drop table if exists public."position"; CREATE TABLE public."position" ( id serial NOT NULL, "name" varchar(255) NOT NULL DEFAULT 'unnamed'::character varying, geom geometry NOT NULL, CONSTRAINT position_pk PRIMARY KEY (id) ); insert into public."pos原创 2021-07-07 12:58:24 · 434 阅读 · 0 评论 -
postgresql 触发器例子(学生,课程,班级,选课)
postgresql 触发器例子(学生,课程,班级,选课) 课程表 -- 课程表 course drop table if exists public.course; CREATE TABLE public.course ( id serial NOT NULL, couse_id varchar(100) null, "name" varchar(100) NULL, CONSTRAINT course_pk PRIMARY KEY (id) ); COMMENT ON COLUMN pu.原创 2021-06-10 09:49:06 · 1914 阅读 · 0 评论 -
centos7 gnome postgresql-11 + postgis31_11 + pgadmin4-deskto
安装 PostgreSQL 11 官网安装链接 yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm 装了这个 rpm ,才能 yum search yum install -y postgresql11 yum install -y postgresql11-server /usr/pgsql-11/bin/postgresql-.转载 2021-03-06 08:15:26 · 509 阅读 · 0 评论