![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
文章平均质量分 62
android_rcccheng
这个作者很懒,什么都没留下…
展开
-
windows,linux java mysql预编译执行
一、windows,linux下重启和停止mysql服务RedHat Linux (Fedora Core/Cent OS)1.启动:/etc/init.d/mysqld start2.停止:/etc/init.d/mysqld stop3.重启:/etc/init.d/mysqld restartDebian / Ubuntu Linux1.启动:/etc转载 2011-11-15 00:33:34 · 1186 阅读 · 0 评论 -
oracle标准语法外连接和子查询外连接,而不采用ANSI连接
不使用ANSI连接,如inner join、left join、right join、full outer join,而使用(+)来表示外连接 错误的写法: select a.*, b.goods_title from iw_account_log a left join beyond_trade_base b on a.TRANS_OUT_ORDER_NO = b.t原创 2011-12-09 13:21:56 · 3134 阅读 · 0 评论 -
"<>"、"!="、"not in"、"exsits"和"not exists"的使用规范
1、原则上一般禁止使用" 错误的写法: select a.id,a.subject,a.create_type from product where status and owner_member_id = :1 正确的写法: select a.id,a.subject,a.create_type from product where s原创 2011-12-09 14:31:12 · 3819 阅读 · 0 评论 -
sql,ibatis文件不允许在where后添加1=1这样的无用条件,where可以写在prepend属性里
不允许在where后添加1=1这样的无用条件,where可以写在prepend属性里,如: 错误的写法:select count(*) from BD_CONTRACT t where 1=1 ...... 正确的写法:select count(*) from BD_CONTRACT t原创 2011-12-09 14:34:32 · 4363 阅读 · 0 评论 -
linux mysql新建用户及让该用户可以在另外一台电脑通过sqlyong,jdbc方式访问设置说明
grant all on cacti.* to cacti@'%' identifiedby 'cacti';通过root账户登录use mysql;select * from user;Host字段的值为%,就是所有其他电脑能够访问,如果是localhost就是mysql配置的电脑能够访问。原创 2013-05-20 19:21:07 · 1170 阅读 · 0 评论 -
proxool错误,需要修改相关配置
今天去一个客户现场,解决人家占用带宽很严重问题。经过多种监控手段1、数据库连接池有问题。2、日志文件太大。3、数据库oracle安装在32位环境,性能无法优化。这里说明一下为何会占用大量带宽:页面显示信息,是通过后台传递数据到前台页面渲染,然后显示导致的。其实这些数据这么大,为啥不生成静态页面,前段页面进行引用啦。这样性能就会好很多。具体修改proxool数据库配置如下原创 2013-08-30 16:46:33 · 3244 阅读 · 0 评论