In this lesson we've looked for some of the basic ways we can browse the online documentation for MySQL, this requires a connection to the Internet and a web browser. So here we are at dev.MySQL.com, notice that in the URL line up here. I will simply type some keywords into the URL line after the address of the site and press the return key. So let's look for, oh, Create Table. Now the search is not case sensitive, I'm just using upper case characters to highlight the keywords I'm entering. After hitting the Return key I'm taken immediately to the page in the MySQL Manual titled Create Table Syntax which is probably what I wanted by typing in Create Table. OK, once were here there are a lot of things that we can learn about the online documentation and the thought that has gone into it. So, this is the page called Create Table Syntax, you will notice if you take a look at the size of the thumb over here, I'm going to drag this down, notice that this is a very lengthy page. Now it's also a little bit wider than what we can see here, let me drag this over. There's a lot of information on here and this page is, actually would take up many, many pages a couple dozen pages probably in the actual physical manual, but it's one web page here and they've organized it really nicely too. So within this one article there may be some subsections and those subsections are given separate links here so we could link to those different things and go over and learn about those other aspects. Also, we can see what the hierarchical path is from this section of a specific chapter all the way back to the Table of Contents because the links for each of the hierarchical areas that were nested inside of, are right up here above this. So right now we're in Create Table Syntax but that's part of another section of Chapter 12 called Data Definition Statements and that in its own turn is part of Chapter 12 on SQL Statement Syntax and that is something we can get to by going all the way back to the Table of Contents. In addition to that, there are some other things; over on the left if we scoot over here a little bit, we'll see that this is the one that is in the current manual right now. As of this recording, Version 5.1 is still the Generally Available or GA Version of MySQL. However, very soon, version 5.5 is going to become the GA Version and if we were to go to Version 5.5 we would see that this same section rather than being section 12.1.17 is 12.1.14. If we go back to the 5.0 manual it's 12.1.10, so we'll just stick with this one that we had here the first place, it's the same content roughly, although there may be some variations as we go from one generation of MySQL to another, but it's still the same basic focus on the Create Table Syntax on this page. All right, over on the right-hand side there are some other useful things, I have to scroll down just a little bit to show these a little bit better. Over here we have all the sibling sections, all of the things that are at the same level as Create Table Syntax. Now we're in the section already on Data Definition Statements and so all of the different things, the Create Statements, the Alter Statements, and if we scroll down little bit, the Drop Statements are all accessible by links over here. So any of the things that we can Create, Alter or Drop we can access. So here's the Drop Table Syntax, if I scroll back up now I can see Create Table Syntax the page that we're and then there's also the Alter Table Syntax. But it's not only Tables, it's Databases and it's Indexes and Procedures and all kinds of other things that we can Create, Alter or Drop. All right, also down in the body of the page itself after we get past all the Syntax Statements that are in this gray background, we see some more detail. And they've done a really good job of hyper texting this as well. So one of the first things we have to do when we Create a Table is to give it a name, if we want to know the rules about that then there's a whole section in another chapter on Schema Object Names. If we want to scroll down little bit further we can see some other things. So every Table in MySQL has to be associated with a Storage Engine, so here's a link to the chapter on Storage Engines. Every Column in a Table has to be of a specific data type so here's a link to the chapter on Data Types and they also have a couple of links to specific data types that they're mentioning here along the way. So, a lot of really useful information in any one of these pages and hypertext links that take you just to wherever you need to go in order to drill down further and really understand what's going on. Now, there's not enough time to finish this guided tour here, this just gets you started, but there is another aspect of this online documentation that's really useful to know about as well, so we'lll start another lesson and go into that other aspect.
| Course: | MySQL 5 Development (Part 1) |
| Author: | David Swain |
| SKU: | 34225 |
| ISBN: | 1-936334-93-3 |
| Release Date: | 2011-05-27 |
| Duration: | 11 hrs / 129 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |