A Comparison of Mysql and Oracle: Jeremy Haubrich
A Comparison of Mysql and Oracle: Jeremy Haubrich
Cost
Oracle
$36,000 per processor for Enterprise Edition +
optional $8,000 for support and software updates
$5,000 per processor for Standard Edition + optional
$1,100 for support and software updates
MySQL
Free to download
$500 for a commercial license + optional
$1,500-$62,000 for different levels of support
Oracle Features
Administrative Alerts
Capacity Planning
Tracks usage patterns to help admins plan for upgrades
Feedback on CPU, disk and query performance
Query Optimizer
Oracle chooses the most efficient way to execute a SQL
statement
Analyzes tables and indexes to minimize the cost of the
transaction
MySQL Features
Differences in syntax
http://troels.arvin.dk/db/rdbms/
Not all databases use the same SQL syntax
Example: Returning the first 5 rows of a query
MySQL
Select columns
FROM tablename
ORDER BY key ASC
LIMIT 5;
Oracle
Select * FROM (
SELECT columns
FROM tablename
ORDER BY key ASC
) WHERE ROWNUM <= 5;
Timestamps
MySQL
Create a field of type TIMESTAMP and enter an invalid date.
February 29 2003.
In this case
Timestamps
Oracle
This will work,
INSERT INTO tablename (columnname)
VALUES (TIMESTAMP'2003-02-28
00:05:00')
while this will fail:
INSERT INTO tablename (columnname)
VALUES (TIMESTAMP'2003-02-29 00:05:00')
Concatenation
Which is better?
MySQL
For non mission-critical environments
Great for database enabled websites
Attractive price point
Oracle
Rock solid dependability, reliability, and features
Steep learning curve and expensive
Designed with the enterprise in mind