数据库/sql
adaqian1
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
如何在INSERT后立即返回主键ID
[code="sql"]insert into users (last_name,pwd,purview,email) values('txl','12345','view','yztxl@eyou.com'); select @@identity[/code]原创 2010-01-22 11:44:35 · 550 阅读 · 0 评论 -
Hibernate分页查询
[code="java"]package com.ada.dao.impl;import org.hibernate.Criteria;import org.hibernate.criterion.Projections;import com.ada.bean.Page;public class MyDAOSupport { /** 分页查询方法 ...原创 2010-07-07 16:03:00 · 117 阅读 · 0 评论 -
sql中替换not in的写法
原来的写法:[code="sql"]select a.flow_id,a.flow_name from t_flow_type a where a.flow_id not in ( select flow_id from t_delay_count_flow);[/code]不使用not in的写法:[code="sql"]select a.flow_id,a.flow_n...原创 2010-07-08 09:38:52 · 737 阅读 · 0 评论 -
使用SQLLDR把Sybase中的数据导到Oracle中
1.自增主键[code="sql"]load datainfile 'sgsnlist'truncate into table SGSNLISTfields terminated by ","trailing nullcols(SGSNINDEX sequence(max,1),SGSNADDRESS,GGSNHOST)[/code]2.日期...原创 2012-02-15 19:57:07 · 190 阅读 · 0 评论
分享