Sequence:序列是一个数据对象,可以用来生成唯一的整数。是数据库里独立的对象,不依赖任何表,为oracle所特有。用来自动生成主键值,可以用sequence的地方:inert语句的子查询中,update的set等。创建序列
:Create sequence seqname —increamen...
分类:
数据库 时间:
2014-06-13 07:36:51
阅读次数:
338
mergemerge into copy_emp ce using emp eon (ce.empno
= e.empno)when matched then update set ename = e.enamewhen not matched then
insert (em...
分类:
数据库 时间:
2014-06-13 07:05:32
阅读次数:
207
apt-get install package 安装包 apt-get reinstall
package 重新安装包 apt-get upgrade 更新已安装的包 #apt-get update //更新软件列表 #apt-get check
//检查依赖性 apt-...
分类:
其他好文 时间:
2014-06-12 21:20:06
阅读次数:
283
Update July 2011:This list has been reviewed and
made current with the most recent Eclipse 3.7 release.If you are a Java
developer and use the new @Su...
分类:
其他好文 时间:
2014-06-12 17:10:17
阅读次数:
278
首先cmd中输入 net stop mysql,或者在系统服务中关闭MySQL注册的服务。
然后在my.ini文件中的[mysqld]下面一行添加:skip_grant_tables mysql -uroot
-p输入任意的密码都可以登录数据库,输入下面2行命令:UPDATE mysql.user....
分类:
数据库 时间:
2014-06-12 14:50:14
阅读次数:
234
在my.ini的段[mysqld]中增加skip-grant-tables(只增加它即可)2.重启mysql服务3.打开cmd,转向mysql的安装路径C:\ProgramFiles\MySQL\MySQLServer5.1\bin4.输入mysql-uroot-p5.密码输入空,这时会自动转向sql输入方式6.输入usemysql7.输入updateusersetpassword=password(‘新..
分类:
数据库 时间:
2014-06-10 23:21:56
阅读次数:
342
A few people have been experiencing the following
error. UPDATE: The reason for it happening is because when your browsers request
a page from us, we ...
分类:
其他好文 时间:
2014-06-10 20:51:52
阅读次数:
273
补上作业,MariaDB10和MySQL5.6社区版压力测试,见下图:sysbench(10.8.8.43)MySQL5.6和MariaDB10.0.11(10.8.8.100)压力测试参数:sysbench--test=oltp--mysql-table-engine=innodb
--oltp-table-size=10000000--max-requests=0--max-time=900
--num-threads=512--mysql-ho..
分类:
数据库 时间:
2014-06-10 18:52:48
阅读次数:
384
測试结论mysql版本号 5.1 表类型: innodb,
row_format=compact (这是默认的行格式) 插入超过10个blob, blob的数据量非常小(768字节), 插入失败:报 Got error
139 from storage engine。 注意,假设mysqlse...
分类:
数据库 时间:
2014-06-10 16:33:07
阅读次数:
276