随笔分类 -  PostgreSQL

摘要:SELECT cust_id, com.com_name,com.contact,com.cell,com.pro || com.city || com.county || com.address AS dizhi FROM huiyuan INNER JOIN com ON huiyuan.id= 阅读全文
posted @ 2021-03-04 15:51 小白膜拜大佬 阅读(1058) 评论(0) 推荐(0)
摘要:三个关键词:Index,Row_number()和 limit select * from (select row_number() over( order by huiyuan.vip desc,huiyuan.time ) as orderid, count(1) over() as n_cou 阅读全文
posted @ 2021-02-04 15:40 小白膜拜大佬 阅读(869) 评论(0) 推荐(0)
摘要:案例:返回结果集中的前十二条数据 使用关键字 limit select hy.id,hy.domain,c.com_name,hy.time from huiyuan hy INNER JOIN com c ON c.cust_id=hy.id and c.com_kind='物流公司' where 阅读全文
posted @ 2021-02-04 15:36 小白膜拜大佬 阅读(113) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; using Npgsql; using System.Configuration; using System.Data; name 阅读全文
posted @ 2021-02-03 15:11 小白膜拜大佬 阅读(318) 评论(0) 推荐(0)
摘要:资料: 一:PG数据库资料: 菜鸟教程: https://www.runoob.com/postgresql/postgresql-index.html 官方PG数据库文档翻译 http://www.postgres.cn/docs/12/index.html 二:项目中引用的数据库驱动 githu 阅读全文
posted @ 2021-02-03 15:04 小白膜拜大佬 阅读(192) 评论(0) 推荐(0)