摘要: 本文为iihero原创,如若转载,请注明出处。谢谢。为简化问题:设表:t(id int, col2 varchar(32))1. ASE:选出重复的行:select * from t group by id, col2 having count(*)>1删掉重复的行,alter table t add col3 int identity not null;delete from t where col3 not in (select max(col3) from t group by id, col2);alter table t drop col3;(前提select into/bul 阅读全文
posted @ 2010-04-06 22:57 张长胜 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 本文为iihero原创,如若转载,请务必注明出处。<!-- [if gte mso 9]><![endif]--><!-- [if gte mso 9]><![endif]--><!-- [if !mso]><!-- [if gte mso 10]>数据库发展到今天,RDBMS(关系型数据库管理系统)和ODBMS(对象数据库管理系统)的界限已经变得模糊了,取而代之的是ORDBMS(对象关系型数据库管理系统),对此,Oracle和DB2早年前都给出了自己的解决方案,即采用类似以下的抽象语法:create typePoint 阅读全文
posted @ 2010-04-06 22:48 张长胜 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 最近,因同时用到ASE和ASA,而且又要用到它的dbisql图形界面工具。不得已强力用之。但发现ASE的dbisql打开之后,居然不能用。这显然是试图加载ASA当中的dbisql。sigh。后来仔细搜索,终于发现ASE使用dbisql的时候,需要一个配置文件,它在:%ALLUSERSPROFILE%/DBISQL 11.0.0目录下边,其中:ALLUSERSPROFILE=C:/Documents and Settings/All Users这个文件名为:dbisql.rep,其内容为:[Adaptive Server Enterprise]classLoaderName=aseisqlplu 阅读全文
posted @ 2010-04-06 20:09 张长胜 阅读(350) 评论(0) 推荐(0) 编辑