1.创建数据库createdatabaseschool;2.使用数据库Useschool;3.创建用户createuserjame@localhostidentifiedby'jame';4.授权用户(注意这里是用了*哦,自己将school也替换成*号)grantselect,update,insert,createonschool.*tojame@localhostidentifiedby'jame';5.取消授权(现在明白为啥直接敲privilege没
系统 2019-08-12 01:55:23 2732
今天测试部门的人叫我过去,说是数据库当了,起不来了。我过去看了看情况,做了如下操作SQL>shutdownimmediate数据库已经关闭。已经卸载数据库。Oracle例程已经关闭。SQL>startupORACLE例程已经启动。TotalSystemGlobalArea135338868bytesFixedSize4534Array2bytesVariableSize10Array051Array04bytesDatabaseBuffers2516582
系统 2019-08-12 01:54:30 2732
http://www.geeksforgeeks.org/write-a-function-to-get-the-intersection-point-of-two-linked-lists/第一第二个方法比较简单,下面这段代码是第三个方法1#include2#include3#include4#include5#include6#include7#inc
系统 2019-08-12 01:53:45 2732
oracle中的常用字符串函数如下:concat(string1,string2)instr(string1,string2)lpad(string1,x[,string2])ltrim(string1,[string2])nls_initcap(string[,nlsparams])nlslower(string[,nlparams])nls_upper(string[,nlsparams])nlssort(string[,nlsparas])repla
系统 2019-08-12 01:53:08 2732
看了些资料,对应只需要知道怎么查询和使用mongodb的我来说,这些足够啦。左边是mongodb查询语句,右边是sql语句。对照着用,挺方便。db.users.find()select*fromusersdb.users.find({"age":27})select*fromuserswhereage=27db.users.find({"username":"joe","age":27})select*fromuserswhere"username"="j
系统 2019-08-12 01:53:00 2732
一.如:'6.7.8.2.3.4.x'得到最后一个'.'后面的字符串:declare@str1varchar(50)set@str1='6.7.8.2.3.4.x'selectREVERSE(SUBSTRING(REVERSE(@str1),1,CHARINDEX('.',REVERSE(@str1))-1))--------string:'x'--------------------------------------------------------
系统 2019-08-12 01:33:49 2732
关闭445端口关闭445端口的方法有很多,但是我比较推荐以下这种方法:修改注册表,添加一个键值Hive:HKEY_LOCAL_MACHINEKey:System\CurrentControlSet\Services\NetBT\ParametersName:SMBDeviceEnabledType:REG_DWORDValue:0修改完后重启机器,运行“netstat-an”,你将会发现你的445端口已经不再Listening了。关闭139开始-设置-网络
系统 2019-08-12 01:33:42 2732
今天在相同环境测试2000和2008性能让我意外的是2008明显比2000慢很多测试sql:SETSTATISTICSIOONSETSTATISTICSTIMEONSELECTCOUNT(1)FROMdbo.tbtextaINNERLOOPJOINdbo.tbtextbONa.id=b.idoption(maxdop1)SETSTATISTICSIOOffSETSTATISTICSTIMEOff表结构:CREATETABLE[dbo].[tbtext]([
系统 2019-08-12 01:33:35 2732
GivenaBST,transformitintogreatersumtreewhereeachnodecontainssumofallnodesgreaterthanthatnode.自己想的复杂了,其实就是一个反向的inorder。新的值就是前面所有元素的求和。TransformaBSTtogreatersumtree
系统 2019-08-12 01:33:01 2732
好记性真不如烂笔头,对于一些不常用的命令还是记录一下吧。查看CPU信息(型号)Shell代码#cat/proc/cpuinfo|grepname|cut-f2-d:|uniq-c8Intel(R)Xeon(R)CPUE5410@2.33GHz#cat/proc/cpuinfo|grepname|cut-f2-d:|uniq-c8Intel(R)Xeon(R)CPUE5410@2.33GHz(看到有8个逻辑CPU,也知道了CPU型号)Shell代码#cat/
系统 2019-08-12 01:32:39 2732