1. 新建数据库,表 2.查看数据库表 3.创建主键与自增长 4.非空、默认与唯一约束 5.重命名、添加字段 ...
分类:
数据库 时间:
2019-01-29 10:48:59
阅读次数:
132
原文:004.MySQL主库手动复制至从库一 主库手动复制至从库 1.1 Master主库锁表 1 mysql> flush tables with read lock; 2 Query OK, 0 rows affected (0.00 sec) 1.2 主库备份 1 [root@master ~... ...
分类:
数据库 时间:
2019-01-28 12:05:48
阅读次数:
175
https://leetcode.com/problems/spiral-matrix/ Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. ...
分类:
其他好文 时间:
2019-01-27 16:45:39
阅读次数:
157
算法描述: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed ...
分类:
其他好文 时间:
2019-01-27 16:36:03
阅读次数:
150
On the way to school, Karen became fixated on the puzzle game on her phone! The game is played as follows. In each level, you have a grid with n rows ...
分类:
其他好文 时间:
2019-01-26 12:40:39
阅读次数:
185
一、对当前的session使用oradebug命令: SQL> conn / as sysdba Connected. SQL> oradebug setmypid Statement processed. 或者对其他session做跟踪 --连接到一个外部服务进程,且pid=v$process.p ...
分类:
其他好文 时间:
2019-01-25 23:51:39
阅读次数:
280
There is a pond with a rectangular shape. The pond is divided into a grid with H rows and W columns of squares. We will denote the square at the i-th ...
分类:
其他好文 时间:
2019-01-25 15:09:20
阅读次数:
252
1.输出binlog到文件mysqlbinlog --base64-output=decode-rows -v /home/mysql/binlog/binlog.000011>/tmp/aa.txt 2.查看某个pos后的多少行show binlog events IN 'binlog.00001 ...
分类:
数据库 时间:
2019-01-25 11:43:48
阅读次数:
144
今天学了异常处理 有预定义异常 与 用户自定义异常 还有 raise_application_error()函数raise_application_error() 只能把异常抛出而不能处理异常。 预定义异常包括– NO_DATA_FOUND --没有找到数据– TOO_MANY_ROWS --找到多 ...
分类:
数据库 时间:
2019-01-22 23:06:46
阅读次数:
455
Medium The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixe ...
分类:
其他好文 时间:
2019-01-20 15:56:32
阅读次数:
137