修改列定义和表名 修改列定义 ALTER TABLE S MODIFY type TINYINT UNSIGNED NOT NULL;(modify是调整 稍作修改的意思,UNSIGNED表示是无符号的,是一个正数如果直接不用UNSIGNED,那int可以是正数负数和零) 演示: 修改表字段 --t ...
分类:
其他好文 时间:
2019-07-16 18:48:38
阅读次数:
99
如果数组元素较大,需要离散化。 cpp include include include include include include include include include include include define ALL(x) (x).begin(), (x).end() defin ...
分类:
编程语言 时间:
2019-07-10 22:48:33
阅读次数:
104
KMP算法基本原理 在字符串A中查找字符串B,那字符串A就是主串,字符串B就是模式串 假设主串是a,模式串是b。kmp算法的核心思想就是在模式串与主串匹配的过程中,当遇到不可匹配的字符的时候,找到一些规律,可以将模式串往后多滑动几位,跳过那些肯定不会匹配的情况。 在模式串和主串匹配的过程中,把不能匹 ...
分类:
编程语言 时间:
2019-07-10 16:58:53
阅读次数:
155
alter table tab_name add ~ alter table employee drop A; 删除A列名 alter table employee modify age smallint unique; first,after+字段名 rename table employee t ...
分类:
其他好文 时间:
2019-07-02 23:00:52
阅读次数:
234
1)数据库初始化参数文件中AUDIT_TRAIL=OS时,审计记录存在操作系统的文件中。 UNIX系统的话,默认存在“$oracle_home/rdbms/audit/” 目录下。 If you have set AUDIT_TRAIL = OS, modify the "init.ora" fil ...
分类:
数据库 时间:
2019-07-01 14:02:42
阅读次数:
191
ZJOI2019 语言 若城市 $u,v$ 能够开展贸易,则称 $u$ 可以到达 那么不难发现某个点能到达的所有点连通 如果路径 $s \to t$ 包含点 $u$,$s,t$ 则是 $u$ 的两个极远点,那么 $u$ 的生成树为连通 $u$ 的所有极远点的最小生成树 于是,我们需要事先思考子问题: ...
分类:
编程语言 时间:
2019-06-27 00:53:18
阅读次数:
126
VMware Harbor 配置文件 :harbor.yml ...
分类:
系统相关 时间:
2019-06-25 15:19:47
阅读次数:
112
--修改表名alter table student rename teacher--修改数据类型alter table student modify column score int--修改列名和数据类型alter table student change column name sname var ...
分类:
其他好文 时间:
2019-06-23 17:22:47
阅读次数:
84
今日知识 数据完整性: 2. 定义主键自动增长: auto_increment 清除:alter table tablename modify id int;(主键还在) 3. 定义唯一约束:unique,值不能重复(但可以都为空) 清除:alter table tablename drop ind ...
分类:
数据库 时间:
2019-06-21 23:48:47
阅读次数:
289
讲解useradd命令选项 useradd - create a new user or update default new user information
讲解usermod命令常用选项 usermod - modify a user account
讲解chmod命令常用选项 chmod - change file mode bits
分类:
系统相关 时间:
2019-06-19 10:09:23
阅读次数:
147