3 things MySQL over Oracle and Sybase
Blogs20102010-11-24
3 things MySQL over Oracle and SybaseI did web application by using MySQL, Oracle, Sybase in various projects, and concluded that MySQL's 3 benefits over Oracle and Sybase. 1. For insert, MySQL's insert ignore is very useful for a auto-increment insert processing. Using the "insert ignore" statement is a way to let MySQL insert data from a dataset which may contain duplicate constraints to existing data, and simply skip the duplicate row.
Sybase doesn't have "ignore" option either, so with the same way Oracle does. Here you can see MySQL makes auto-increment insert easier. 2. Smart conversion. MySQL silently and seamless cuts the excess string, to make the insert successfully.
So MySQL uses better choice over Oracle and Sybase: it smartly and intelligent process the case without manually interaction. 3. limit: Limit the number of records returned. MySQL's limit is super, it retrieve the data in a given range.
select *
from ( select a.*, rownum rnum
from ( YOUR_QUERY_GOES_HERE ) a
where rownum = 30;Sybase and MS SQL are sibling, they use almost the same syntax. They don't have limit either, so even harder to do the same case. To control it, I use Perl's Tie::Hash module to store and bind database data to temporarily memory instead of mysql's limit function. Sybase has excellent functionality of store procedure, and cursor, but not good at limit query. |
