上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 68 下一页
摘要: 1.脏读:一个事务读取到了另外一个事务未提交的数据,读到其他事务的未提交的“更新”数据 2.不可重复读:同一个事务中,多次读取到的数据不一致 3.幻读:一个事务读取到了另外一个事务未提交的数据,只是读到的是其他事务“插入”的数据 阅读全文
posted @ 2019-08-04 11:27 anobscureretreat 阅读(1273) 评论(0) 推荐(0)
摘要: 当多个事务同时操作同一个数据库的相同数据时。 阅读全文
posted @ 2019-08-04 11:22 anobscureretreat 阅读(177) 评论(0) 推荐(0)
摘要: 数据库模式定义语言并非程序设计语言,DDL数据库模式定义语言是SQL语言(结构化查询语言)的组成部分。 SQL语言包括四种主要程序设计语言类别的语句:数据定义语言(DDL),数据操作语言(DML),数据控制语言(DCL)和事务控制语言(TCL)。 阅读全文
posted @ 2019-08-04 11:02 anobscureretreat 阅读(200) 评论(0) 推荐(0)
摘要: 数据操纵语言(Data Manipulation Language, DML)是SQL语言中,负责对数据库对象运行数据访问工作的指令集。 以INSERT、UPDATE、DELETE三种指令为核心,分别代表插入、更新与删除,是开发以数据为中心的应用程序必定会使用到的指令, 因此有很多开发人员都把加上S 阅读全文
posted @ 2019-08-04 10:43 anobscureretreat 阅读(382) 评论(0) 推荐(0)
摘要: //Truncate是一个能够快速清空资料表内所有资料的SQL语法。并且能针对具有自动递增值的字段,做计数重置归零重新计算的作用。 阅读全文
posted @ 2019-08-04 10:25 anobscureretreat 阅读(170) 评论(0) 推荐(0)
摘要: 1、Mysql 让主键归0:TRUNCATE table1; 2、只清空数据表,主键不归0:DELETE FROM table1; 参考: https://www.csdn.net/gather_2d/MtTaMgxsMjcxMy1ibG9n.html 阅读全文
posted @ 2019-08-04 01:10 anobscureretreat 阅读(797) 评论(0) 推荐(0)
摘要: 1、TRUNCATE TABLE 在功能上与不带 WHERE 子句的 DELETE 语句相同:二者均删除表中的全部行。但 TRUNCATE TABLE 比 DELETE 速度快,且使用的系统和事务日志资源少。 2、DELETE 语句每次删除一行,并在事务日志中为所删除的每行记录一项。TRUNCATE 阅读全文
posted @ 2019-08-04 01:03 anobscureretreat 阅读(630) 评论(0) 推荐(0)
摘要: 1、由 FOREIGN KEY 约束引用的表。(您可以截断具有引用自身的外键的表。) 2、参与索引视图的表。 3、通过使用事务复制或合并复制发布的表。 4、对于具有以上一个或多个特征的表,请使用 DELETE 语句。 5、TRUNCATE TABLE 不能激活触发器,因为该操作不记录各个行删除。 阅读全文
posted @ 2019-08-04 00:56 anobscureretreat 阅读(506) 评论(0) 推荐(0)
摘要: 1.drop和delete只是删除表的数据(定义),drop语句将删除表的结构、被依赖的约束(constrain)、触发器 (trigger)、索引(index);依赖于该表的存储过程/函数将保留,但是变为invalid状态。 2.delete语句是DML语言,这个操作会放在rollback seg 阅读全文
posted @ 2019-08-04 00:54 anobscureretreat 阅读(227) 评论(0) 推荐(0)
摘要: (PHP 4, PHP 5, PHP 7) extension_loaded — 检查一个扩展是否已经加载 如果 name 指定的扩展已加载,返回TRUE,否则返回 FALSE。 Example #1 extension_loaded() 例子 参考: https://www.php.net/man 阅读全文
posted @ 2019-08-03 15:03 anobscureretreat 阅读(315) 评论(0) 推荐(0)
摘要: insert into share (uid, mapId, isdir, type, pwd, shareTime, overTime, price) values (1, 10, 0, 1,"111111", STR_TO_DATE('2019-08-03 04:52:13', '%Y-%m-% 阅读全文
posted @ 2019-08-03 13:05 anobscureretreat 阅读(511) 评论(0) 推荐(0)
摘要: 参考: https://www.jianshu.com/p/c82cada7e5b0https://www.cnblogs.com/grandyang/p/4475985.htmlhttps://www.jianshu.com/p/7dacc9a3c9a0 阅读全文
posted @ 2019-08-03 11:09 anobscureretreat 阅读(1709) 评论(0) 推荐(0)
摘要: 北京市朝阳区建国门外大街2号楼中国人保财险大厦15层 阅读全文
posted @ 2019-08-02 18:30 anobscureretreat 阅读(143) 评论(0) 推荐(0)
摘要: 指针和引用都是地址的概念,指针指向一块内存,它的内容是所指内存的地址;引用是某块内存的别名。程序为指针变量分配内存区域,而不为引用分配内存区域。 指针使用时要在前加 * ,引用可以直接使用。 引用在定义时就被初始化,之后无法改变;指针可以发生改变。 即引用的对象不能改变,指针的对象可以改变。 没有空 阅读全文
posted @ 2019-08-02 18:24 anobscureretreat 阅读(1403) 评论(0) 推荐(0)
摘要: 结构体 内存排布图如下 参考: https://blog.csdn.net/zhengnianli/article/details/87390212 https://blog.csdn.net/Scl_Diligent/article/details/80295446 阅读全文
posted @ 2019-08-01 22:46 anobscureretreat 阅读(190) 评论(0) 推荐(0)
摘要: code 输出 阅读全文
posted @ 2019-08-01 21:03 anobscureretreat 阅读(1842) 评论(0) 推荐(0)
摘要: code 输出 阅读全文
posted @ 2019-08-01 19:54 anobscureretreat 阅读(947) 评论(0) 推荐(0)
摘要: 利用 print_r() 函数可以打印输出整个数组内容及结构,按照一定格式显示键和元素。注意 print_r() 函数不仅是只用于打印,实际它是用于打印关于变量的易于理解的信息。 例子1 输出 var_dump() 函数也可以用于打印数组的数据及结构。不过 var_dump() 函数功能比 prin 阅读全文
posted @ 2019-08-01 00:31 anobscureretreat 阅读(3571) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-08-01 00:27 anobscureretreat 阅读(509) 评论(0) 推荐(0)
摘要: unlink() 函数删除文件。 如果成功,该函数返回 TRUE。如果失败,则返回 FALSE。 参考: https://www.runoob.com/php/func-filesystem-unlink.html 阅读全文
posted @ 2019-08-01 00:17 anobscureretreat 阅读(413) 评论(0) 推荐(0)
摘要: 下面的例子创建名为 "testfile.txt" 的新文件。此文件将被创建于 PHP 代码所在的相同目录中: 下面的例子把姓名写入名为 "newfile.txt" 的新文件中: 打开 "newfile.txt" 文件,它应该是这样的: 如果现在 "newfile.txt" 包含了一些数据,所有已存在 阅读全文
posted @ 2019-08-01 00:06 anobscureretreat 阅读(3417) 评论(0) 推荐(0)
摘要: chmod() 函数改变文件模式。 如果成功则返回 TRUE,否则返回 FALSE。 例子 参考: https://www.w3school.com.cn/php/func_filesystem_chmod.asp 阅读全文
posted @ 2019-08-01 00:02 anobscureretreat 阅读(435) 评论(0) 推荐(0)
摘要: 输出 参考: https://www.php.net/manual/en/ziparchive.addfile.php https://blog.csdn.net/qq_38794041/article/details/81483739 https://www.w3school.com.cn/php 阅读全文
posted @ 2019-08-01 00:00 anobscureretreat 阅读(170) 评论(0) 推荐(0)
摘要: 例子 例子 参考: https://blog.csdn.net/qq_38125058/article/details/79145302 阅读全文
posted @ 2019-07-31 23:42 anobscureretreat 阅读(345) 评论(0) 推荐(0)
摘要: 取出目录路径中的文件名字 code 输出 参考: 阅读全文
posted @ 2019-07-31 23:35 anobscureretreat 阅读(268) 评论(0) 推荐(0)
摘要: code 输出 参考: https://www.w3school.com.cn/php/func_string_rtrim.asp 阅读全文
posted @ 2019-07-31 23:22 anobscureretreat 阅读(177) 评论(0) 推荐(0)
摘要: 例子 输出 参考: https://www.w3school.com.cn/php/func_string_ltrim.asp 阅读全文
posted @ 2019-07-31 23:18 anobscureretreat 阅读(221) 评论(0) 推荐(0)
摘要: 输出 参考: 阅读全文
posted @ 2019-07-31 23:12 anobscureretreat 阅读(258) 评论(0) 推荐(0)
摘要: 例子 输出 例子 输出 参考: https://www.w3school.com.cn/php/func_string_trim.asp 阅读全文
posted @ 2019-07-31 23:10 anobscureretreat 阅读(216) 评论(0) 推荐(0)
摘要: is_numeric() 函数用于检测变量是否为数字或数字字符串。 例子 输出 参考: https://www.runoob.com/php/php-is_numeric-function.html 阅读全文
posted @ 2019-07-31 22:40 anobscureretreat 阅读(552) 评论(0) 推荐(0)
摘要: PHP 中换行可以用 PHP_EOL 来替代,以提高代码的源代码级可移植性: unix系列用 \n windows系列用 \r\n mac用 \r 参考: https://www.runoob.com/w3cnote/php-php_eol.html 阅读全文
posted @ 2019-07-31 22:38 anobscureretreat 阅读(182) 评论(0) 推荐(0)
摘要: var_dump() 函数用于输出变量的相关信息 输出 参考: https://www.runoob.com/php/php-var_dump-function.html 阅读全文
posted @ 2019-07-31 22:34 anobscureretreat 阅读(294) 评论(0) 推荐(0)
摘要: 参考: https://www.w3school.com.cn/php/func_string_strpos.asp 阅读全文
posted @ 2019-07-31 22:28 anobscureretreat 阅读(169) 评论(0) 推荐(0)
摘要: 参考: https://www.jb51.net/article/146892.htm 阅读全文
posted @ 2019-07-31 00:39 anobscureretreat 阅读(4601) 评论(0) 推荐(0)
摘要: 参考: https://www.cnblogs.com/zwgblog/p/6006102.html 阅读全文
posted @ 2019-07-31 00:04 anobscureretreat 阅读(296) 评论(0) 推荐(0)
摘要: 这条命令将会杀掉所有含有关键字"LOCAL=NO"的进程 另一种方法,使用awk 下面将这条命令作一下简单说明: 管道符"|"用来隔开两个命令,管道符左边命令的输出会作为管道符右边命令的输入。 "ps -ef" 是linux里查看所有进程的命令。这时检索出的进程将作为下一条命令"grep LOCAL 阅读全文
posted @ 2019-07-30 23:37 anobscureretreat 阅读(621) 评论(0) 推荐(0)
摘要: 显示 notes.log 文件的最后 10 行,请输入以下命令: 跟踪名为 notes.log 的文件的增长情况,请输入以下命令: 显示文件 notes.log 的内容,从第 20 行至文件末尾: 显示文件 notes.log 的最后 10 个字符: 显示最后100行数据 显示第100行到末尾行 参 阅读全文
posted @ 2019-07-30 23:26 anobscureretreat 阅读(268) 评论(0) 推荐(0)
摘要: cat #将文件内容输出到屏幕head #查看文件开头N行tail #查看文件末尾N行tailf #动态的查看的写入,有写入时屏幕输出vim、vi #文件编辑器,也可以当是查看文件{进入文件}grep #查看特定的字符行sed #这个是不进入文件里面修改文件,可以看文件的awk #这个是按列查看文件 阅读全文
posted @ 2019-07-30 23:13 anobscureretreat 阅读(1890) 评论(0) 推荐(0)
摘要: 如果找不到目标元素,index会报错,find会返回-1 参考: https://blog.csdn.net/yolandera/article/details/80264876 阅读全文
posted @ 2019-07-30 22:50 anobscureretreat 阅读(1049) 评论(0) 推荐(0)
摘要: select count(*) as dd from users; 阅读全文
posted @ 2019-07-30 22:06 anobscureretreat 阅读(2205) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 68 下一页