![]() |
![]() OCAU News - Wiki - QuickLinks - Pix - Sponsors |
|
|||||||
| Notices |
|
Sign up for a free OCAU account and this ad will go away! Search our forums with Google: |
![]() |
|
|
Thread Tools |
|
|
#16 | |
|
Member
Join Date: Aug 2001
Location: London
Posts: 497
|
Quote:
Oh and if you think that fields set to NOT NULL accepting NULL values, or NULL values being changed to not NULL values is fine, then I seriously hope you arent planning a long career in databasing. |
|
|
|
|
| Join OCAU to remove this ad! |
|
|
#17 | |
|
Member
Join Date: Oct 2004
Location: Singapore
Posts: 6,255
|
Quote:
Watch the video, it's not nit-picking, it's showing MySQL vs a REAL database. That doesn't mean you can't build good systems with MySQL. You CAN. You just need to be aware of the issues when using MySQL, as shown in the video. |
|
|
|
|
|
|
#18 |
|
Member
Join Date: Feb 2006
Location: Slicin' & dicin'!
Posts: 19,327
|
that's a shame though i am interested in how a user can call data from a MySQL database and enter it into an html and vice versa.
__________________
XBOX Live/Steam: The Gh0sts - PSN: TheGhosts - Origin: Th3_Gh0sts HTPC: Prodigy HTPC | Main PC: Armor A30 Work & Gaming PC | My Portfolio - KL-23 Media |
|
|
|
|
|
#19 | |
|
Member
Join Date: Sep 2005
Location: Central Coast
Posts: 798
|
Quote:
Oh, on your point: I do not see mysql accepting null val on a not null field, that operation threw an error. When the guy tried to insert a row - without specifying a value to the not null string field, - it has defaulted to an empty string. That's how mysql works. After such a weak starting argument I cannot be bothered watching the rest. Waste of time. Not to mention that would it be an article, properly written, it'd be much quicker to digest, and a much more serious-looking argument. The fact is: it's more popular and working very well. Not flawless. Postre isn't either. Anyway, I'm not going to waste my time with arguing haters, feel free to continue on without me. You guys either will learn that the world is not binary or not. Up to you.
__________________
Montagio Custom Tailoring & SmarterSoft ASUS P6X58D Premium | i7 920 & Scythe Mugen v2 cooler | 6GB RAM Corsair TR3X6G1333C7 | 2x GTX670 SLI | SB recon3D SilverStone Fortress FT02B-W with Antec 850W Signature Series PSU | Eyefinity on 3x24" 2407 & 2xu2410 |
|
|
|
|
|
|
#20 | |
|
Whammy!
Join Date: May 2003
Location: Melbourne
Posts: 3,944
|
Quote:
That kind of chicanery doesn't even happen in Access.
__________________
Administrator: Apple Desktop Hardware/Software, Graphics and Programming, Digital Art, iOS Devices, For Sale (PC and Non-PC), Price Check and What/Where Should I Buy? mercury: 11" Macbook Air, i5, 4Gb RAM, 128Gb SSD lunchbox: Mac mini, i5 Dual Core, 4Gb RAM, 500Gb HDD |
|
|
|
|
|
|
#21 | ||
|
Member
Join Date: Jun 2001
Location: Brisbane
Posts: 19,870
|
MySQL has it's (well documented) quirks. Just like MS-SQL, PostgreSQL and Oracle all have their quirks. They're all also aimed at entirely different markets with entirely different support pricing models and complexity requirements.
And for what it's worth, I could make a 2 hour video on all the "stupid" things Windows and MacOSX do compared to Linux. (Holy crap, have I been fighting with MacOSX's forced dereferencing of symlinks which breaks so much stuff for my current industry over the last few weeks!). But the fact remains, each has a different audience, price point, and complexity requirement. Notice I put "stupid" in quotes, because in reality intuitiveness is always relative, and what I consider "stupid" may well be a well thought out design decision for someone else with a different viewpoint on the process. If you know MySQL's limitations, and know how to work around MySQL's limitations, like most things it can be pretty powerful in the right hands (find and replace "MySQL" for the to products I mentioned in the last paragraph too). And like all things, choosing the right product for the job can save a lot of heartache in advance. In short: Protip - MySQL is awesome for a backend to an Internet forum (guess what database is holding the text you're reading right now), but don't go building a banking platform off it. The quirks in these videos are well known, well documented, and not hidden from anyone. From the official MySQL documentation: http://dev.mysql.com/doc/refman/5.0/...with-null.html http://dev.mysql.com/doc/refman/5.0/...with-null.html Quote:
Code:
mysql> SELECT 0 IS NULL, 0 IS NOT NULL, '' IS NULL, '' IS NOT NULL; +-----------+---------------+------------+----------------+ | 0 IS NULL | 0 IS NOT NULL | '' IS NULL | '' IS NOT NULL | +-----------+---------------+------------+----------------+ | 0 | 1 | 0 | 1 | +-----------+---------------+------------+----------------+ Quote:
And as we all know, there's plenty of other limitations with Access. Lord knows I've seen so many businesses bitten hard by limitations in that program after someone thought it would be a good idea to write a business-critical tool in Access, and then watch it fall over months later when requirements grew. But again, it wasn't the fault of the tool per se, as it was the idiot user/developer who didn't do their research and understand the limitations before they started the project. And for what it's worth, I've seen first hand a large retail organisation (40 sites around the country containing 7+ years of point of sale data, customer data, credit card data, etc) build their entire system on Microsoft Access. Years later when it collapsed, they ported the whole thing to MySQL, which ran quite well under heavy production (not your average retailer, and during especially heavy retail seasons they moved a LOT of stock). Years later again, their management migrated the whole thing to MS-SQL at great expense. While I'm not sure the last move was entirely necessary, their CIO at the time was aiming for supplemental features (data warehouse and BI stuff) later on, and was personally familiar with Microsoft products, so I can understand the migration path from his point of view. Point of the story: MySQL can work well under large loads - I've seen it work in places orders of magnitude larger than that again (an online gaming mob I worked for last year pushed it a lot harder across many production sites). In those particular instances, the developers understood the tool quite intimately (the retail company contracted Arjen from OpenQuery to do some tweaking and optimisation work for them at times). They understood what MySQL did well, what it did poorly, and worked to it's strengths. Could they have used PostgreSQL instead? Actually at that time, no, due to the poor replication support on offer. Today could be a different story. The online gaming mob I speak about is heavily investigating PostgreSQL instead, as it offers far superior control at a much lower level (things like how the database flushes to disk, etc) which give them better peace of mind now that they're growing much larger in customers and throughput (one of their sites pushes GBP£ 4 million per day through the system, which isn't huge by some standards, but isn't chump change either).
__________________
Child's Play Charity |
||
|
|
|
|
|
#22 | |
|
Whammy!
Join Date: May 2003
Location: Melbourne
Posts: 3,944
|
Quote:
As with everything - the best solution, at the best time, with the best intentions.
__________________
Administrator: Apple Desktop Hardware/Software, Graphics and Programming, Digital Art, iOS Devices, For Sale (PC and Non-PC), Price Check and What/Where Should I Buy? mercury: 11" Macbook Air, i5, 4Gb RAM, 128Gb SSD lunchbox: Mac mini, i5 Dual Core, 4Gb RAM, 500Gb HDD |
|
|
|
|
|
|
#23 | |
|
Member
Join Date: Aug 2001
Location: London
Posts: 497
|
Quote:
MySQL does this for various other constraints as well, which makes it downright painful for anyone not intimately familiar with MySQL to debug why their database isnt storing the expected values (I would also say it trips up a fair few experts as well). In my opinion, this also encourages sloppy database design and pushes database integrity control and data validation back onto the application layer. As others have pointed out, MySQL has its place, just not in my workplace. |
|
|
|
|
|
|
#24 | |
|
Member
Join Date: May 2003
Location: Brisbane
Posts: 1,730
|
And in my opinion that's where that logic should be. I don't like logic in the database because it's not version controlled and it's less apparent what is actually going on.
__________________
Live CAM Quote:
|
|
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|