中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档 | 网通镜像
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 程序开发 > 编程语言 > Java > 数据库
Can mySQL/LAMP Challenge Oracle, Microsoft, and Sybase? @ JDJ
作者:未知 时间:2005-08-10 23:01 出处:Java频道 责编:chinaitpower
              摘要:Can mySQL/LAMP Challenge Oracle, Microsoft, and Sybase? @ JDJ
This week's MySQL User Conference in Santa Clara, CA, looks to be the biggest and most important gathering of the MySQL faithful yet. Those signed up for the conference are getting hit by at least an email a day, inviting them to stop by such-and-such a booth to see so-and-so's new product.

There are a lot of reasons for this, but the overarching one is the recent releases of two versions of the database program, giving it new features that make it much more palatable for database traditionalists and likely making it more welcome in IT departments. MySQL Version 5.0 promises more features that will likely make it more welcome in IT departments, alongside Oracle, Microsoft SQL Server, and Sybase SQL Anywhere. This in turn should further validate LAMP as a viable application development strategy.

The first release was that of version 4.1 a couple of months ago. The most notable new capability in 4.1 was support for subqueries, which allow one query statement to be comprised of several queries. Subqueries, and correlated subqueries are essential for creating sophisticated applications. Entire chapters of books have been written explaining how to get around the lack of subqueries.

Virtually every other SQL implementation supports subqueries. Without them, MySQL felt a lot like a toy. With the release of 4.1, you don't need to worry about that anymore.

But the really big step is the release, in beta form, of version 5.0 of the server. Version 5.0 finally adds support for several big features of relational databases: views, stored procedures, user-defined functions and triggers. Views let you create "virtual tables" that can be addressed the same way as regular tables, but which comprise several different tables.

Stored procedures let you store sequences of SQL scripts in one named procedure, which can then be called from other programs. User-defined functions allow you to use SQL to extend the language, and provide shortcuts to complicated procedures. Finally, triggers are ways of programming the database engine to react to certain events in the database--inserting, changing, or deleting rows, for example.

Not all of these features is perfect. For example, functions can not query tables, which places severe limits on their usefulness for such things as data validation in trggers. The implications of some features on such things as database optimization is not clear yet, either.

But the upshot of all these anguage changes is to add features to the server that bring it more in line with other big database products. As a SQL developer, I appreciated 4.1 a lot because it saved me time in having to write code that worked around limitations in MySQL itself. Using it was a liberating experience.

I look forward to 5.0's new features, for a lot of reasons. For one, it will remove the burden of scripting in the host language (I usually use PHP), and let me move some standard logic into the database layer of my applications. This means that I can create standard interfaces in the database which can be used from various host languages without having to re-invent the wheel every time.

MySQL will always have its skeptics. This is an area where things can get religious quickly. There are those who frown on features added to SQL by Microsoft, for example, and different points of view about what belongs in the database layer versus what belongs in the application layer.

But it's clear that with the imminent release of 5.0 in production, MySQL is here to stay. From the looks at the number of add-on products being touted at this week's show, a lot of vendors are betting on it.

关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有