philzhou

导航

上一页 1 2 3 4 5 6 ··· 12 下一页

2013年11月18日 #

oracle rownum paging issues

摘要: rownum是oracle预处理字段,默认标序是1,只有记录集已经满足条件后才会进行后续编号。由于第一条记录rownum默认是1,而你的条件是rownum>=6 对第一条记录比较它的rownum肯定不大于6 a56爆大奖在线娱乐不满足条件 oracle舍弃第一条记录将数据库第二条记录标序为1再进行比较 肯定都不满足rownum>=6 这样循环也就是说由于没有记录满足rownum>=6a56爆大奖在线娱乐记录一直被舍弃,rownum一直是1 。 排序方法: select * from ( select a1.*, rownum rwn from emp a1 where rownum = 6; 或者... 阅读全文

posted @ 2013-11-18 18:51 philzhou 阅读(326) 评论(0) 推荐(0) 编辑

2013年10月17日 #

HTML <!DOCTYPE> Declaration

摘要: Title of the documentThe content of the document...... Definition and Usage The declaration must be the very first thing in your HTML document, before the tag. The declaration is not an HTML tag; ... 阅读全文

posted @ 2013-10-17 18:32 philzhou 阅读(868) 评论(0) 推荐(0) 编辑

2013年9月28日 #

ecshop 部署

摘要: 1. 在本地安装好mysql,配好账户密码,启动数据库。 2. 在本地部署ecshop站点,打开网站,按照安装向导配置数据库,网站基本信息。 (其中数据库信息存放在\data\config.php中) 3. 备份好数据库,可以到处成sql语句,也可以直接复制数据库表文件。 4. 将网站,数据库表上传到租用的空间上,配置好config.php的账号信息。 阅读全文

posted @ 2013-09-28 16:58 philzhou 阅读(442) 评论(0) 推荐(0) 编辑

去除ecshop版权信息

摘要: 前台部分: 1:去掉TITLE部分的ECSHOP演示站 Powered by ecshop 前者在后台商店设置 - 商店标题修改 后者打开includes/lib_main.php $page_title = $GLOBALS['_CFG']['shop_title'] . ' - ' . 'Powered by ECShop'; 修改这里的'Powered by ECShop 2.去掉友情链接部... 阅读全文

posted @ 2013-09-28 16:41 philzhou 阅读(259) 评论(0) 推荐(0) 编辑

2013年9月24日 #

ado.net access oracle dataset via store procedure

摘要: 使用存储过程返回结果集,并绑定到ado.net对象中在sql server里面是非常直观的。 1: create procedure GetAllRecords 2: as 3: select * from dept;存储过程返回一个结果集,然后通过SqlDataAdapter绑定给DataSet。但是在Oracle里面返回结果集存储过程是不可以这样写的,返回的结果集要通过游标来完成的。首先创建一个包,新建一个应用游标类型 1: create or replace package cust_types is 2: type ref_cursor is ref curso... 阅读全文

posted @ 2013-09-24 18:20 philzhou 阅读(346) 评论(0) 推荐(0) 编辑

2013年9月13日 #

I can connect to an FTP site but I can't list or transfer files.

摘要: 原文FTP sessions use two network connections:Thecontrol channelis for user authentication and sending commands and ...Thedata channelis for transferring files and directory listings.If you can connect to an FTP server but not transfer files or directory listings, the most likely cause is a blocked dat 阅读全文

posted @ 2013-09-13 17:46 philzhou 阅读(380) 评论(0) 推荐(0) 编辑

2013年8月26日 #

javascript 函数执行上下文

摘要: 在js里,a56爆大奖在线娱乐函数都有一个执行的上下文,a56爆大奖在线娱乐们可以通过this来访问。 如: 全局函数 function test(){ var local = this; } a56爆大奖在线娱乐们发现local等于window(dom根对象),也就是说全局函数实际上是window的一个属性。 同理全局变量也是如此。 比如 var name = ‘phil’; a56爆大奖在线娱乐们可以通过window[‘name’]或者window.name ... 阅读全文

posted @ 2013-08-26 11:30 philzhou 阅读(2508) 评论(4) 推荐(0) 编辑

2013年8月22日 #

Operate blob data in Oracle via C#

摘要: oracle table: CREATE TABLE "SCOTT"."TEST_BLOB" ( "NAME" VARCHAR2(200), "PHOTO" BLOB ) Operating Code: private static void OprBlob() { var connStr = ConfigurationManager.ConnectionStrings["ora"].Con... 阅读全文

posted @ 2013-08-22 17:12 philzhou 阅读(254) 评论(0) 推荐(0) 编辑

ORA-01704: string literal too long

摘要: update mkt_page_links set longdescription = ' {some html text > 4000 char} ' where menuidno = 310;(longdescription type is clob)execute this cmd against oracle database via OracleClient, you will get the following error.ORA-01704: string literal too longCause: The string literal is longer 阅读全文

posted @ 2013-08-22 16:23 philzhou 阅读(3447) 评论(0) 推荐(0) 编辑

2013年8月16日 #

Asp.net using Oracle.DataAccess.dll access oracle 11g 64bit & x86

摘要: 使用.net访问oracle数据库时一般需要在机器上安装instantclient才能正常连接。下面介绍a56爆大奖在线娱乐不用安装instantclient直接引用dll就用.net能连接oracle数据库的方法:1. 下载x86的ODAC1120320Xcopy_32bit包使用x86的包是因为vs建立的asp.net项目默认指定的是x86的类库,而且无论你将项目的target设置为64,或者x86使用的都是x86的类库,如果你引用的Oracle.DataAccess.dll是64bit的话在运行的时候会报错。2. 将一下5个文件从压缩包中拷贝出来。其中Oracle.DataAccess.dll使用类库引 阅读全文

posted @ 2013-08-16 21:58 philzhou 阅读(4268) 评论(1) 推荐(1) 编辑

上一页 1 2 3 4 5 6 ··· 12 下一页