From e1e254787f8b9327a4ed47a7559d6b56db13c80b Mon Sep 17 00:00:00 2001 From: xing <xingjs@qq.com> Date: 星期二, 21 二月 2023 14:52:22 +0800 Subject: [PATCH] 20230221@xingjs@提交官网一张图相关内容接口 --- src/main/resources/mapper/show/OneMapMapper.xml | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/show/OneMapMapper.xml b/src/main/resources/mapper/show/OneMapMapper.xml index 2c2aa17..8ae6c87 100644 --- a/src/main/resources/mapper/show/OneMapMapper.xml +++ b/src/main/resources/mapper/show/OneMapMapper.xml @@ -66,6 +66,22 @@ </select> + <!-- 鏌ヨ琛ㄤ俊鎭� --> + <select id="queryTableInfo" resultType="java.util.Map"> + SELECT a.attnum, + a.attname, + concat_ws('',t.typname,SUBSTRING(format_type(a.atttypid,a.atttypmod) + FROM '\(.*\)')) AS type,d.description,typnotnull + FROM pg_class c,pg_attribute a,pg_type t,pg_description d + WHERE c.relname= '${tableName}' + AND a.attnum>0 + AND a.attrelid=c.oid + AND a.atttypid=t.oid + AND d.objoid=a.attrelid + AND d.objsubid=a.attnum; + </select> + + -- Gitblit v1.9.3