名字 描述character varying(n), varchar(n) 变长,有长度限制character(n), char(n) 定长,不足补空白text 变长,无长度限制简单来说,varchar的长度可变,而char的长度不可变,对于postgresql数据库来说varchar和char的区 ...
分类:
数据库 时间:
2018-10-21 12:14:35
阅读次数:
253
一、管理数据库 1.1查看所有数据库 show databases; 1.2创建数据库 1)create database 数据库名; 2)指定默认字符集与字符集的默认校验规则 create databases 数据库名 default character set utf8 collate utf8 ...
分类:
数据库 时间:
2018-10-18 16:57:00
阅读次数:
142
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Example 2: 思路: 代码: ...
分类:
其他好文 时间:
2018-10-18 10:58:59
阅读次数:
180
The API: int read4(char *buf) reads 4 characters at a time from a file. The return value is the actual number of characters read. For example, it retu ...
分类:
其他好文 时间:
2018-10-18 10:58:32
阅读次数:
236
Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example 1 ...
分类:
其他好文 时间:
2018-10-18 10:58:09
阅读次数:
128
Given a list of sorted characters letterscontaining only lowercase letters, and given a target letter target, find the smallest element in the list th ...
分类:
其他好文 时间:
2018-10-18 01:17:00
阅读次数:
132
find: 该正则表达式: initEcharts *:{1} *\{{1} 匹配: Summary of regular-expression constructsConstructMatches CharactersxThe character x\\The backslash characte ...
分类:
其他好文 时间:
2018-10-17 12:16:55
阅读次数:
923
题目 Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a le ...
分类:
其他好文 时间:
2018-10-17 11:00:45
阅读次数:
97
在 my.cnf 配置文件中设置相关选项,改变为相应的character set。 设置数据库编码(sudo vi /etc/mysql/my.cnf): 查看设置结果 更改my.cnf之前: 设置之后,重启mysql服务($ sudo service mysql restart): ...
分类:
数据库 时间:
2018-10-15 16:29:08
阅读次数:
196
使用递归方式判断某个字串是否是回文( palindrome ); 思路: 先定义一个判断回文的方法,先得到字符串的长度,利用charAt方法去比较第一个和最后一个字符,如果一样,前一个向后移一位,后一个向前移一位,再比较;如此下去,直到前一个等于后一个; 在主方法中调用这个方法,进行判断; 问题: ...
分类:
其他好文 时间:
2018-10-14 23:10:55
阅读次数:
264