Quantcast
Channel: CodeSection,代码区,数据库(综合) - CodeSec
Browsing all 6262 articles
Browse latest View live

Spring整合Mybatis,获取删除的数据行数 数据库 数据库学习 Spring Mybatis

Spring整合Mybatis,获取删除的数据行数。 spring 整合Mybatis,在 编写 delete接口的SQL时,不允许设置 resultType ,无法通过执行多条语句来获取删除受影响的行数。 更简洁的解决方法: delete接口的返回类型设为Integer, 不需要在中 定义resultType,即可自动返回受影响的行数。

View Article


快速查询数据库表字段名,存储过程 数据库 数据库学习 数据库表字段名 存储过程

快速查询数据库表字段名,存储过程。ALTER PROC [dbo].[sp_help_table]@tableName NVARCHAR(50)ASBEGINSELECT a.colorder 字段序号,a.name 字段名,b.name 字段类型,b.length AS 字段长度,g.[value] AS 字段说明FROM syscolumns a left join systypes bon...

View Article


Image may be NSFW.
Clik here to view.

Crate安装和配置 数据库 数据库学习 Crate安装 Crate配置

Crate安装和配置。ElasticSearch,它部署简单,搜索聚合功能强大,而且和其他大数据框架整合起来使用,有一点比较不方便,就是查询都需要通过JSON作为请求Body来提交查询,请求响应也是JSON,作为习惯使用SQL的我,迫不及待的试用了一下Crate(crate.io),它是在ElasticSearch之上封装了SQL接口,用户可以通过SQL语句来完成搜索和统计,支持的SQL语法还蛮多的...

View Article

用户标签系统数据库设计 数据库 数据库学习 数据库设计 用户标签系统

用户标签系统数据库设计。需求背景目前主流的博客系统、CMS都会有一个TAG标签系统,不仅可以让内容链接的结构化增强,而且可以让文章根据Tag来区分。相比传统老式的Keyword模式,这种Tag模式可以单独的设计一个Map的映射表来增加系统的负载和查询的效率。 数据库设计方案11.Tag表2.文章表Tag表表结构:tagid # tag标签的IDtagname #tag内容num...

View Article

多语言系统的数据库设计 数据库 数据库学习 数据库设计 多语言系统

先说下在数据库设计时,可以有以下方案实现多语:一、为每个多语字段建立对应语言的字段列。 比如我们有一个客户表,记录了客户Id、客户名称、客户地址、客户电话等,其中客户名称和客户地址是多语的,而且需要支持简体中文、繁体中文和英语,于是我们可以将客户表设计如下:create table Client( ClientId int primary key, NameChs nvarchar(50),...

View Article


Hubert 'depesz' Lubaczewski: Getting first and last values per group

Every so often someone needs solution to getting first (or couple of first) values for given column. Or last. For some cases (when there is not many groups) you can userecursive queries. But it's not...

View Article

Connecting With Graphs At IBM Connect Red Pill Now

Over the past 12 months Red Pill Now has continue to explore new and exciting ways in which we can exploit the potential of Graph Databases. The unique characteristics of Graph databases combined with...

View Article

Migrating Your MongoDB with Mongoose RESTful API to Couchbase with Ottoman

When talking to Node.js developers, it is common to hear about NoSQL as the database of choice for development. javascript and JSON come hand in hand because after all JSON stands for JavaScript Object...

View Article


Vapor 连接 MongoDB

最近在写一个小项目,来学习Vapor。我们在写后台的时候坑定避免不了要和数据库进行交互,最起码的数据库连接呀,什么增删查改呀之类的最基本的操作还是经常需要的。Vapor 在我看来是一个特别小清新的 Swift Server 库,总之就是喜欢。来看看Vapor 怎么和MongoDB进行连接然后进行一系列的操作的。 在这里呢,MongoDB的安装呀什么乱七八糟的步骤就不多说了。 Vapor...

View Article


Image may be NSFW.
Clik here to view.

云原生时代下的12-factor应用与实践

作者简介:黄庆兵,网易蜂巢首席技术布道师,浙大硕士毕业,从事云计算、Docker、Go等相关开发及技术布道工作;喜欢开源,乐于分享,勤于布道,折腾过开源小工具,制作过Docker课程,分享过 Gopher Meetup。欢迎一起来探讨技术!个人主页: http://bingohuang.com/ 以下为正文: 1. 简介...

View Article

Image may be NSFW.
Clik here to view.

构建Hadoop+Hbase+ZooKeeper分布式存储

前言* Hadoop 是Apache开源组织的一个分布式计算开源框架,在很多大型网站上都已经得到了应用,如亚马逊、Facebook和Yahoo等等。对于我来说,最近的一个使用点就是服务集成平台的日志分析。服务集成平台的日志量将会很大,而这也正好符合了分布式计算的适用场景(日志分析和索引建立就是两大应用场景)。 今天我们来实际搭建一下Hadoop...

View Article

mongodb添加arbiter节点

创建mongodb的replica set的时候,只是做成了1主2从,没有做成1主1从1仲裁。这我们将一个几点从replica set中删除,再以仲裁节点的身份加入到replica set中: 1.初始状态: shard1ReplSet:PRIMARY> rs.status();rs.status(); { "set" : "shard1ReplSet", "date" :...

View Article

Getting Started With Cassandra: CQL Data Types and Using GoCQL

In the first part of this tutorial series, I covered the very basics of Cassandra and used CQLSH to communicate with the database system via shell. In this second part, I will cover in brief the major...

View Article


Stubbing the AWS SDK

Originaly published on https://devops.college . Republished with author's permission. If you’re reading this, dear Devop, you can probably remember a time before you were a Devop, or a Site...

View Article

Image may be NSFW.
Clik here to view.

5 key skills you should expect from your DBA team in the era of cloud

Organizations today are under pressure to reduce IT costs and resources while increasing storage capacity and compute power. In response, many are making the leap to thecloud or at least seriously...

View Article


Image may be NSFW.
Clik here to view.

Florian Leibert (CEO, Mesosphere) and Luca Olivari (Oracle, MongoDB) joining...

We have some amazing news today. Two brilliant minds are joining ArangoDB and our recently founded Advisory Council. Florian Leibert is CEO of Mesosphere and Luca Olivari former Executive at Oracle and...

View Article

Vulnerability Spoltlight: Multiple Vulnerabilities in the Aerospike NoSQL...

Vulnerabilities discovered by Talos Talos is releasing multiple vulnerabilities discovered in the Aerospike Database Server. These vulnerabilities range from Denial of Service to potential remote code...

View Article


Why We Stopped Worrying and Loved the Pipeline

There has been a lot of protest related to pipelines recently, but there is one that we can all agree brings value and profit to our work: the MongoDB Aggregation Pipeline . When MongoDB v2.2 was...

View Article

Image may be NSFW.
Clik here to view.

Creating a JSON-Friendly Azure Logic App That Interacts with Functions,...

I like what Microsoft’s doing in the app integration space. They breathed new life into their classic integration bus ( BizTalk Server ). The family of Azure Service Bus technologies (Queues, Topics,...

View Article

SDKs and APIs - less choice is better? Few easy steps toward more harmonious...

We have taken a deep look on javascript npm package ecosystem and one may ask a natural next question: what is a relation between APIs and SDKs (such as npm packages)? Why do we need SDKs for APIs...

View Article
Browsing all 6262 articles
Browse latest View live