软g+实例的关p:一台电脑只需要按照一套QQQYӞQ但是我们可以多用户dQ实例)。换到哲学的角度Q就是抽象和具体的关pR?br />数据库(狭义Q下面简U?b>?/b>Q?/font>Q一堆文Ӟ数据文g、控制文件、日志文件、参数文Ӟ
?/b>q当于是QQ聊天记录最后:数据库(q义Q? 软g + 实例 + ?/font>
在数据库集群模式设计斚wQ有Share everything架构和Share nothing架构Q前者以ORACLE RACZ表,IBM DB2 Purescale为挑战者;后者以IBM DB2 DPFZ表?br />
Build or re-engineer your applications using PowerDesigner, Sybase's all-in-one enterprise modeling and design solution.
PowerDesigner 12.5, a model-driven approach to aligning business and
IT, is an enterprise modeling and design solution that helps you
implement effective enterprise architecture. It brings powerful
analysis and design techniques to your development lifecycle.
PowerBuilder |
|
A 4GL rapid application development tool |
Accelerate development with PowerBuilder, the market’s favorite 4GL RAD tool.
PowerBuilder lets you stay ahead of the development curve and offers the flexibility to develop for your most productive platform. PowerBuilder 11.1 incorporates new and emerging technologies that let you to build traditional two-tier applications, distributed applications, Web applications and Smart Clients with speed and ease. And with this new release, you can easily deploy your existing PowerBuilder applications to .NET. Get started with PowerBuilder 11.1 today, and see how quickly and easily you can build data-driven applications.
Adaptive Server Enterprise is the mission-critical data management system for taming the information explosion.
Adaptive Server Enterprise (ASE) has long been noted for its
reliability, low total cost of ownership and superior performance. With
its latest version, ASE 15, it has been dramatically enhanced to
deliver capabilities urgently needed by enterprises today. It lays the
long-term foundation for strategic agility and continuing innovation in
mission-critical environments. ASE 15 provides unique security options
and a host of other new features that boost performance while reducing
operational costs and risk. Find out how you can exploit new
technologies such as grids and clusters, service-oriented architectures
and real-time messaging.
SQL Anywhere |
|
Sybase iAnywhere - Mobile and Embedded Database |
The industry-leading mobile and embedded database, providing data management and exchange technologies that enable applications for frontline environments.
SQL Anywhere provides data management and exchange technologies
designed for database-powered applications that operate in frontline
environments without onsite IT support. It offers enterprise-caliber
features in a database that is easily embedded and widely deployed in
server, desktop, remote office and mobile applications.
Sybase IQ |
|
Highly optimized business intelligence, analytics and data warehousing |
The smartest way to deliver high-performance enterprise analytics and data warehousing with dramatically faster results at a low cost.
Sybase IQ is a highly optimized analytics server designed specifically to deliver faster results for mission-critical business intelligence, data warehouse and reporting solutions on any standard hardware and operating systems. It works with diverse data ?including unstructured data ?and diverse data sources to deliver unsurpassed query performance at the lowest price/performance available.
ASIQQ企业数据仓库数据库服务器Q适合于DSS环境中的企业U数据仓库和数据集市
1. top N 问题
在sql server中,top N 问题很容易解冻I如下例:从表stbdbdj中选取排序后的W一行数据进行赋倹{?/span>
在sql中解x法很单,在select 后面加上Qtop n 卛_Q其?n 代表行数?
@entrust_no = entrust_no
from run2k..stbdbdj
where entrust_date = @date
and entrust_no > @entrust_no_q
and report_status = '1'
order by entrust_date,entrust_noQ?/span>
在oracle中,没有top nq个命oQ我们采取把两层查询方式解决Q首先,把需要查扄字段值直接进行排序,然后在外面进行第二次查询Qƈ使用rownum军_行数?br />
into @entrust_date, @entrust_no
from ( select entrust_date,entrust_no
from stbdbdj
where entrust_date = @date
and entrust_no > @entrust_no_q
and report_status = '1'
order by entrust_date,entrust_no )
where rownumber <=1 ;
2. 如何解决l果集返回时Q? 和变量同时存在的问题
下面例子表示Q在用游标返回结果集Ӟ同时q回一个变量的|?/span>
sql server
中代码如下所C:
from run2k..stbbp a,run2k..stkaccoarg b
where a.date = @entrust_date
and a.serial_no = @serial_no
and a.branch_no = b.branch_no
and a.exchange_type = b.exchange_type;
但在oracle中却没有q种用法Q?’后面必需跟from。解x法如下:
1Q我们可以把 '*' 变成所需要选择的字D,是说采用表中需要显C的全部字段表示*?br />
例如Q?br />
select
branch_no,...,organ_id
where
...
2Q如果这个字D|者说变量是从另外一张表中取出来的,同样可以采用下面的办法?br />
select a.*,b.organ_id;
from stkaccoentrust a, stkaccoarg b
where a.branch_no = b.branch_no
and a.exchange_type = b.exchange_type
and a.init_date = v_entrust_date
and a.serial_no = v_serial_no;
3. 外联接问?/b>
sql
<--->
oracle
a = *b <---> a(+)= b
a *= b <---> a = b(+)
4. 多条记录求和问题
select sum(A+B+C)
into D
from ...
where ...
group by ...
单条记录求和
select A+B
into C
from ...
where ...
5. case 问题转换
sql:
case client_status
when '0' then '正常'
when '1' then 'ȝ'
when '2' then '挂失'
when '3' then '销?
else '未知'
end
oracle:
decode(client_status,'0','正常Q?1','ȝ','2','挂失','3','销?,'未知');
6. char ?varchar cd区别Q?
char N补空|varchar N不补I格?b>
7. convert转换问题
sql
--->
oracle
convert(char(5),branch_no) ---> to_char(branch_no,'99999')
convert(char(19),count(*)) ---> lpad(to_char(count(*)),19)
convert(varchar(20),serial_no) ---> to_char(serial_no,'999...9' )
d20?
lpad(to_char(serial_no),20)
8. charindex(substring,string) ---> instr(string,substring)
子串 父串 ---> 父串 子串