2014年11月18日

MySQL 数据库入门操作

摘要: 启动mysqld:在命令行启动mysql时,如不加"--console",启动、关闭信息不在界面中显示,而是记录在安装目录下的data目录里,文件名一般是hostname.err,通过此文件查看mysql的控制台信息。关闭mysqladmin -u root shutdown加入到系统服务中:mys... 阅读全文

posted @ 2014-11-18 21:24 robertsun 阅读(182) 评论(0) 推荐(0) 编辑

select count(*)和select count(1)

摘要: 原文:http://blog.csdn.net/hzhsan/article/details/9186831一般情况下,Select Count (*)和Select Count(1)两着返回结果是一样的 假如表沒有主键(Primary key), 那么count(1)比count(*)快, 如果有... 阅读全文

posted @ 2014-11-18 21:20 robertsun 阅读(575) 评论(0) 推荐(0) 编辑

Oracle instr 及 like

摘要: 原文: http://www.cnblogs.com/crazyjava/archive/2012/10/31/2748202.htmlinstr(string1,string2[,start_position[,nth_appearence]])string1:要在此字符串中查找。string2:... 阅读全文

posted @ 2014-11-18 21:18 robertsun 阅读(230) 评论(0) 推荐(0) 编辑

导航