
数据库
iteye_18296
这个作者很懒,什么都没留下…
展开
-
mysql查询上一条数据,下一条数据
如果ID是主键或者有索引,可以直接查找:方法一(此方法已经试用过,很有效的呢):查询上一条记录的SQL语句(如果有其他的查询条件记得加上other_conditions以免出现不必要的错误):[code="java"]select * from table_name where id = (select id from table_name where id < {$id}...2015-02-09 10:39:24 · 526 阅读 · 0 评论 -
linux下启动oracle数据库
1. linux下启动oracle su - oracle sqlplus /nolog conn /as sysdba startup exit lsnrctl start exit 2. linux下关闭oracle su - oracle sqlplus /nolog conn /as sysdba shutdown immed...2015-03-24 09:30:24 · 125 阅读 · 0 评论 -
oracle清空表
1。先清空这些[code="java"]BEGINfor c1 in(select table_name from USER_TABLES where table_name not in ('T_ACL','T_CODE','T_DICTIONALYEGIS','T_MIJIACL','T_MODULE','T_ORGACL','T_ORGANIZATION','T_PERSON','T_...2015-04-18 10:52:04 · 474 阅读 · 0 评论