第一步:更改配置文件
chuck@ubuntu:/opt/gitlab-7.8.1-0/apps/gitlab/htdocs/config/initializers$ cp smtp_settings.rb.sample smtp_settings.rb
chuck@ubuntu:/opt/gitlab-7.8.1-0/apps/gitlab/htdocs/config/initializ...
分类:
其他好文 时间:
2015-04-14 16:41:46
阅读次数:
123
在MySQL与PostgreSQL的对比中,PG的JSON格式支持优势总是不断被拿来比较。其实早先MariaDB也有对非结构化的数据进行存储的方案,称为dynamic column,但是方案是通过BLOB类型的方式来存储。这样导致的问题是查询性能不高,不能有效建立索引,与一些文档数据库对比,优势并不...
分类:
数据库 时间:
2015-04-14 14:12:26
阅读次数:
155
创建带有postgis功能的数据库的方法1.安装时勾选默认创建的gis库2.新建一个数据库 执行createextensionpostgis创建一个带有地理类型列的表1.先创建一个不包含地理列的表CREATE TABLE public."STATION_ADDRESS"( "ID" charact....
分类:
数据库 时间:
2015-04-14 11:07:36
阅读次数:
336
The Employee table holds all employees. Every employee has an Id, and there
is also a column for the department Id.
+----+-------+--------+--------------+
| Id | Name | Salary | DepartmentId |
+--...
分类:
其他好文 时间:
2015-04-13 23:04:15
阅读次数:
179
An SSH key allows you to establish a secure connection between your computer and GitLab.Before generating an SSH key, check if your system already has...
分类:
其他好文 时间:
2015-04-13 22:46:44
阅读次数:
251
Write a SQL query to get the nth highest salary from the Employee table.
+----+--------+
| Id | Salary |
+----+--------+
| 1 | 100 |
| 2 | 200 |
| 3 | 300 |
+----+--------+
For exampl...
分类:
其他好文 时间:
2015-04-13 09:35:04
阅读次数:
105
在利用postGIS导入shapefile文件到postgresql数据库的时候,老是提示字符串的问题,或者是乱码,试了好几种都不行,于是度娘之。。。。使用默认的UTF8,提示信息是:建议使用LATIN1;Unable to convert data value to UTF-8 (iconv re...
分类:
数据库 时间:
2015-04-12 22:15:53
阅读次数:
214
如果只是简单地从1开始,递增值为1,可以这样写,serail是一种特殊的类型:
往Employee中添加值及其结果:
如果想设置更加详细的项,比如起始、递增值、最大值、最小值,可以定义一个sequence。
在sequence中,如果是no minvalue、no maxvalue表示最小最大值为-1,注意最小值不能大于最大值.。
然后改变表格的列:
往E...
分类:
数据库 时间:
2015-04-12 19:24:09
阅读次数:
202