javaweb学习总结(三十八)——事务一、事务的概念 事务指逻辑上的一组操作,组成这组操作的各个单元,要不全部成功,要不全部不成功。 例如:A——B转帐,对应于如下两条sql语句 update from account set money=money+100 where name='B';...
分类:
编程语言 时间:
2015-07-05 18:10:27
阅读次数:
201
Where is Vasya?Vasya stands in line with number of peoplep (including Vasya), but he doesn't know exactly which position he occupies. He can say that ...
分类:
其他好文 时间:
2015-07-05 07:06:36
阅读次数:
255
select 5种子句:注意顺序where / group by /having / order by / limit /清空表中的数据:truncate 表名;导入表结构(不含数据): create table 表2 like 表1;删除表:drop table 表名;导入数据:ins...
分类:
数据库 时间:
2015-07-04 23:32:41
阅读次数:
227
Description:Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary t...
分类:
其他好文 时间:
2015-07-04 18:21:09
阅读次数:
91
版权是我的,转载没有通过我的同意的爬虫都是傻逼.假设有user表.里面有id,acount(账户,nvarchar(50)),pwd(密码,nvarchar(50)).最简单的实现渣渣说做个登录功能,那还不简单.select * from user where acount=XX AND PWD =...
分类:
其他好文 时间:
2015-07-04 11:04:13
阅读次数:
269
删除数据表也有3种方案一.使用Statement对象删除数据表记录的SQL语句的语法是: delete from 表名 where 特定条件例如 : delete from ksInfo where 姓名 = ‘张大卫’先创建一个SQL语句,然后调用Statement对象的execute...
分类:
数据库 时间:
2015-07-04 10:56:59
阅读次数:
158
用于记录开发过程中的sql容易遇到的问题:1、delete,truncate,drop 区别delete:精确删除。如删除 学生表(student)里id为5的记录。可以写为 delete from studen where id ='5' 删除表里面的所有数据,可以写为delete from s....
分类:
数据库 时间:
2015-07-04 00:42:18
阅读次数:
173
同事反映impdp时在SCHEMA_REPORT/TYPE/TYPE_SPEC步骤卡住,1个多小时后也没有响应,
查下v$session:
select program,sid, event,blocking_session from gv$session where program like '%DW%';
结果为:
DW01,98,library cache lock,213
DW...
分类:
系统相关 时间:
2015-07-03 23:30:57
阅读次数:
280
mer_stage 表有 216423 条记录,DDL:CREATE TABLE `mer_stage` (
`STAGE_ID` int(11) NOT NULL AUTO_INCREMENT,
`MER_ID` int(11) NOT NULL,
`MER_CODE` varchar(16) DEFAULT NULL,
`MER_NAME` varchar(80) NOT NU...
分类:
数据库 时间:
2015-07-03 20:43:45
阅读次数:
187
修改数据表记录也有3种方案。一.使用Statement对象实现修改数据表记录的SQL语句的语法是: update表名 set 字段名1 = 字段值1,字段名2 = 字段值2,……where特定条件例如: update ksInfo set 姓名 = ‘张小卫’where 姓名 = ‘张大卫’...
分类:
数据库 时间:
2015-07-03 20:36:22
阅读次数:
148