best: SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM tf_f_theme) A WHERE ROWNUM <= 40)WHERE RN >= 30
batter: select * from (select a.*,rownum rn from(select * from tf_f_theme) a) where RN BETWEEN 21 AND 40
update tablename colname=replace( colname, string_to_replace, [ replacement_string ] )
In Oracle/PLSQL, the replace function replaces a sequence of characters in a string with another set of characters.
The syntax for the replace function is:
replace( string1, string_to_replace, [ replacement_string ] )
string1 is the string to replace a sequence of characters with another set of characters.
string_to_replace is the string that will be searched for in string1.
replacement_string is optional. All occurrences of string_to_replace will be replaced with replacement_string in string1. If the replacement_string parameter is omitted, the replace function simply removes all occurrences of string_to_replace, and returns the resulting string.
For example:
replace('123123tech', '123'); would return 'tech'
replace('123tech123', '123'); would return 'tech'
replace('222tech', '2', '3'); would return '333tech'
replace('0000123', '0'); would return '123'
replace('0000123', '0', ' '); would return ' 123'
public Connection get Connection()
{
try{
String strUrl=CONNECTION_STRING+"?user="+username+"&password="+password+"&useUnicode=true&characterEncoding=gb2312";
conn=DriverManager.getConnection(strUrl);}
catch(Exception e)
{con=null;}
}
return con;
}
1,mysql
利用MySQL的一个特性实现MySQL查询结果的分页显示
来源:本文出自: 作者: (2001-07-05 18:08:00)
在mysql中利用select语句的一个特性就可以很方便地实现查询结果的分页,select语句的语法:
SELECT [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [HIGH_PRIORITY]
[DISTINCT | DISTINCTROW | ALL]
select_expression,...
[INTO OUTFILE 'file_name' export_options]
[FROM table_references
[WHERE where_definition]
[GROUP BY col_name,...]
[HAVING where_definition]
[ORDER BY {unsigned_integer | col_name | formula} [ASC | DESC] ,...]
[LIMIT [offset,] rows]
[PROCEDURE procedure_name] ]
LIMIT子句可以用来限制由SELECT语句返回过来的数据数量,它有一个或两个参数,如果给出两个参数,
第一个参数指定返回的第一行在所有数据中的位置,从0开始(注意不是1),第二个参数指定最多返回行
数。例如:
select * from table LIMIT 5,10; #返回第6-15行数据
select * from table LIMIT 5; #返回前5行
select * from table LIMIT 0,5; #返回前5行
(http://www.fanqiang.com)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
[信息办公]凯撒java版SaaS OA协同办公软件 v2.0_saas-oa.zip项目JAVA源码+资料打包下载[信息办公]凯撒java版SaaS OA协同办公软件 v2.0_saas-oa.zip项目JAVA源码+资料打包下载 1.适合学生做毕业设计参考 2.适合个人学习技术研究参考 3.适合小公司做对应项目参考
资源详情
资源评论
资源推荐
收起资源包目录
[信息办公]凯撒java版SaaS OA协同办公软件 v2.0_saas-oa.zip项目JAVA源码+资料打包下载 (1794个子文件)
postcode.jsp.bak 12KB
notebookmodify.jsp.bak 11KB
audit.jsp.bak 8KB
mycalendarmodify.jsp.bak 8KB
shownotebook.jsp.bak 7KB
userauthadd.jsp.bak 7KB
notifydelete.jsp.bak 7KB
reportadd.jsp.bak 7KB
regupdate.jsp.bak 7KB
sharecalendarquery.jsp.bak 6KB
newslist.jsp.bak 6KB
useraddactor.jsp.bak 6KB
calendarquery.jsp.bak 6KB
audituser.jsp.bak 6KB
dutyquery.jsp.bak 6KB
deleteuser.jsp.bak 6KB
deletecustom.jsp.bak 6KB
telmodify.jsp.bak 6KB
notebooklist.jsp.bak 6KB
filesdelivery.jsp.bak 6KB
newsadd.jsp.bak 6KB
studylist.jsp.bak 6KB
filesredelivery.jsp.bak 6KB
reg.jsp.bak 6KB
actoradd.jsp.bak 5KB
letterlist.jsp.bak 5KB
partsadd.jsp.bak 5KB
userauthdelete.jsp.bak 5KB
notebookupdate.jsp.bak 5KB
sitemodify.jsp.bak 5KB
auditlist.jsp.bak 5KB
partsdelete.jsp.bak 5KB
showreport.jsp.bak 5KB
showstudy.jsp.bak 5KB
telupdate.jsp.bak 5KB
studycommentslist.jsp.bak 4KB
redeliverylist.jsp.bak 4KB
deliverylist.jsp.bak 4KB
actordelete.jsp.bak 4KB
reportlist.jsp.bak 4KB
shownotify.jsp.bak 4KB
authdelete.jsp.bak 4KB
siteupdate.jsp.bak 4KB
showletter.jsp.bak 4KB
showreportauditlist.jsp.bak 4KB
telbook.jsp.bak 3KB
sitebook.jsp.bak 3KB
shownews.jsp.bak 3KB
newstypedelete.jsp.bak 3KB
reportquery.jsp.bak 3KB
xmycalendar.jsp.bak 3KB
shuoming.jsp.bak 3KB
showcalendar.jsp.bak 3KB
showdelivery.jsp.bak 3KB
showredelivery.jsp.bak 3KB
xreportadd.jsp.bak 3KB
xcreg.jsp.bak 3KB
xfactoryadd.jsp.bak 3KB
xfilesdelivery.jsp.bak 3KB
xnotemanager.jsp.bak 3KB
xnotebookmanager.jsp.bak 2KB
xauditcustdetail.jsp.bak 2KB
xextractconfig.jsp.bak 2KB
xnoauth.jsp.bak 2KB
xletter.jsp.bak 2KB
xaudit.jsp.bak 2KB
xhistoricalsitesadd.jsp.bak 2KB
xactoradd.jsp.bak 2KB
xuserauthadd.jsp.bak 2KB
xpartsmodify.jsp.bak 2KB
xfilesredelivery.jsp.bak 2KB
xnotifyadd.jsp.bak 2KB
xproductionadd.jsp.bak 2KB
xregupdate.jsp.bak 2KB
xleaderadd.jsp.bak 2KB
xsitemanager.jsp.bak 2KB
xtelmanager.jsp.bak 2KB
xapplyreg.jsp.bak 2KB
xmycalendarmodify.jsp.bak 2KB
xpartsadd.jsp.bak 2KB
xpartsdetailadd.jsp.bak 2KB
xauthadd.jsp.bak 2KB
xsiteupdate.jsp.bak 2KB
xtelupdate.jsp.bak 2KB
xstudy.jsp.bak 1KB
xnewstypeadd.jsp.bak 1KB
xinstituteadd.jsp.bak 1KB
xexpertreg.jsp.bak 1KB
xforinfo.jsp.bak 1KB
xnewsadd.jsp.bak 1KB
xpartsdetailmodify.jsp.bak 1KB
xpatentadd.jsp.bak 1KB
xdeleteuser.jsp.bak 1015B
xlinksadd.jsp.bak 937B
xpartsdelete.jsp.bak 886B
xuserauthdelete.jsp.bak 868B
xauthdelete.jsp.bak 858B
xnewstypedelete.jsp.bak 849B
xonduty.jsp.bak 831B
xdeletecust.jsp.bak 815B
共 1794 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18
yxkfw
- 粉丝: 81
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0