- 浏览: 83524 次
- 性别:
- 来自: 福建
最新评论
-
ws512098112:
前台怎么跳到后台啊。
jsp页面导出保存word或Excel几种方法及个人总结 -
donkee:
如果有关联,生成的对象名不符合习惯!
hibernate生成实体规则 -
donkee:
不好意思,是可以的!
hibernate生成实体规则 -
donkee:
映射文件不能更新hibernate.cfg.xml文件
hibernate生成实体规则 -
请输入用户名:
呵呵 总结的很清楚啊,我学完没总结的习惯。。都快忘干净了。。希 ...
struts2 标签s_iterator
文章列表
oracle中使用on delete cascade和on delete set null来建立外键
其面我们介绍了创建外键约束时如果使用oracle默认的创建方式,在删除被参照的数据时,将无法被删除,这一点在oracle9i中给了我们更多灵活的选择,我们可是使用on delete cascade ...
select a.constraint_name, a.table_name, b.constraint_name
from user_constraints a, user_constraints b
where a.constraint_type = 'R'
and b.constraint_type = 'P'
and a.r_constraint_name = b.constraint_name
P 代表主键
R 代表外键
原来是SQL语句中加了双引号的原因,将值改为单引号就行了!看来对于SQL中,单引号与双引号的区别还得好好复习一下了!另外一个可能的原因是,将数据库表的列名写错了!
select t.examinee_id,
t.batch_id,
t.signcompany,
t.signcompany_code,
t.signposition,
t.signposition_code,
(select count(*) from ti_examinee_info b where t.examinee_id=b.examinee_id) as examsum
from ti_examinee_info t
有个变通的做法
Loop
...
if(true) then
goto nextloop;
end if;
...
<<next_loop>>
null;
end loop;
我们在写SQL的时候经常会用到别的表的数据,都要通过关联来取,但如果关联表多的话,会SQL变的难于读懂:
create or replace function f_sys_get_state(in_table_name VARCHAR2, --TS_STATE中配置的表名
in_col_name VARCHAR2, --TS_STATE中配置的字段名
in_state_value char) --TS_STAT ...
方法一.
select a.idcard,
SUM(
CASE WHEN a.subject_code=2 THEN a.SCOPE ELSE 0 END
)
,
SUM(
CASE WHEN a.subject_code=3 THEN a.SCOPE ELSE 0 END
)
,
SUM(
CASE WHEN a.subject_code=4 THEN a.SCOPE ELSE 0 END
)
,
SUM(
CASE WHEN a.subject_code=5 THEN a.SCOPE ELSE 0 END
)
from cm_studen ...
运行该函数后就可以直接在SQL中使用
CREATE OR REPLACE TYPE ty_str_array IS TABLE OF VARCHAR2 (4000);
CREATE OR REPLACE FUNCTION fn_split (p_str IN VARCHAR2, p_delimiter IN VARCHAR2)
RETURN ty_str_split
IS
j INT := 0;
i INT := 1;
len INT := 0;
len1 INT := 0;
str VARCHAR2 (4000);
...
直接下载下面SQL文件运行即可:
运行顺序:vip_province.sql -> vip_city.sql -> grp_area.sql
将下面代码直接复制到相应的位置就可看效果
var comboxWithTree = new Ext.form.ComboBox({
fieldLabel:"使用科室",
hiddenName:'entity.cuseDept',
store:new Ext.data.SimpleStore({fields:[],data:[[]]}),
editable:false,
mode: 'local',
tr ...
在CSS代码中加入
.x-grid-record-red table{
color: #FF0000;
}
在GridPanel中加入
viewConfig : {
autoFill : true,
getRowClass : function(record,rowIndex,rowParams,store){
//禁用数据显示红色
if(record.get('tradeId')==null || record.get('tradeId') == ''){
return 'x- ...
select a.* from (select SCORE_ID,EX_EB_ID,EB_NAME,ss.ADMISSION_TICKET,SCOPE,EXAM_TIME,UPDATE_TIME, ei.examinee_id,ei.examinee_name, ei.register_dept,ei.dept_code,ei.register_station, ei.station_code, row_number() OVER(partition by dept_code, ei.station_code ORDER BY ss.scope desc) a_rownum from TM_ST ...
- 2010-05-23 11:11
- 浏览 513
- 评论(0)
select i.sid,i.sname,i.birthday,i.schooltime,i.sphone,c.classname,a.assnname,sum(decode(subject,'语文',s.score,0)) as chin, sum(decode(subject,'数学',s.score,0)) as math, sum(decode(subject,'英语',s.score,0)) as eng from student_info i left join student_expand e on i.sid = e.sid left join student_class c ...
- 2010-05-23 11:10
- 浏览 567
- 评论(0)
select a.constraint_name, a.table_name, b.constraint_name from user_constraints a, user_constraints b where a.constraint_type = 'R' and b.constraint_type = 'P' and a.r_constraint_name = b.constraint_name
P 代表主键 R 代表外键
- 2010-05-23 11:09
- 浏览 539
- 评论(0)
//删除用户drop user civilinterview cascade;
//创建用户并指定表空间 create user username identified by password default tablespace test_data temporary tablespace test_temp;
//给用户授予权限
grant connect,resource to username;
- 2010-05-23 11:09
- 浏览 361
- 评论(0)