![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql点滴
smm0910
这个作者很懒,什么都没留下…
展开
-
createStatement参数解释
Statement stmt=conn.createStatement(参数一,参数二)第一个参数可以取值为ResultSet.RTYPE_FORWORD_ONLY:这是缺省值,只可向前滚动;ResultSet.TYPE_SCROLL_INSENSITIVE:双向滚动,但不及时更新,就是如果数据库里的数据修改过,并不在ResultSet中反应出来。ResultSet.TYPE_...原创 2009-08-21 10:05:13 · 112 阅读 · 0 评论 -
DatabaseMetaData 使用
来自:http://163navy.blog.163.com/blog/static/10530408620090193314856/ 一 、得到这个对象的实例 Connection con ;con = DriverManager.getConnection(url,userName,password);DatabaseMetaData dbmd = con.getM...2010-08-25 12:24:00 · 95 阅读 · 0 评论 -
SQL JOIN
给个通俗的解释吧. 例表a aid adate 1 a1 2 a2 3 a3 表b bid bdate 1 b1 2 b2 4 b4 两个表a,b相连接,要取出id相同的字段 select * from a inner join b on a.aid = b.bid这是仅取出匹配的数据. 此时的取出的是: 1 a1 b1 2 a2 b2 ...2010-10-14 11:30:00 · 59 阅读 · 0 评论 -
使用alter修改oracle表字段
增加字段 alter table docdsp add dspcode char(200) 删除字段 ALTER TABLE table_NAME DROP COLUMN column_NAME 修改字段类型 ALTER TABLE table_name ALTER COLUMN column_name new_data_...2010-10-15 15:32:00 · 110 阅读 · 0 评论 -
MySQL manager or server PID file could not be found! [FAILED]
#我的server的hostname,mysql pid文件默认名字为hostname.pid,如果没有在/etc/my.cnf里面指定特定和pid filename和pid file path的话,这个文件是跟mysql数据在一起的。[root@redhat var]# hostnameredhat这时候通过#切换到mysql data dir(mysql的数据文件目录下)#你们的mysql d...原创 2013-03-11 20:57:29 · 138 阅读 · 0 评论 -
MySQL is not running, but lock exists
A MySQL crash on Red Hat system resulted with:/etc/init.d/mysql statuscoming back with:mysql is not running but lock exists Solved by removing the lock file:rm /var/lock/subsys/mysql If ...原创 2013-03-11 20:59:15 · 252 阅读 · 0 评论