Hello, in this video we are going to look at creating tables, but using code. So before we would go into PHP myadmin, click New. And then this I will put the table name, put any, you know, field they thought, etc, we can actually do this directly in code if we need to. So we can first of all, it's create query as you normally would. So connection pair and keyword create the table then the name of the table from the say test. And then what you do and it's pretty good, you know sort of, you know, practice to basically put this on a new line quizzes it see what's happening for CREATE TABLE and you know, you can be Realize easier then you put the field someone say ID and then space and then the desktop integer comma, the next field, I'm going to say worldwide.
So again, it's not very creative but in my bar chart in brackets, you put the lamp a if that particular data type requires a 32 and like there should not be a comma. I'll do one more like row two and I'll do this if I say that you just execute the query now execute we know that Okay, so again era so probably not been successful. Toby getting what are we get in to use near ID intervals Okay, so the question is, What mistake have I make Luckily, I made some mistake somewhere. You know what, I think you need brackets here. And here. There we go.
And if we go into here and if we reload your period side as well, we got a table quote a table called test, and Id row one and row two integer var char a two and integer, as well. So they You go and any other property you can just press bait and add them right here so let's put in something new and I think this is I'm fine it helps you to visualize it walks you through this the rows, number of rows and the row is make sure you put the the parentheses there And apart from that you feel good to go. Any questions, feel free to pop me and message if not have fun in you know, creating tables, and I look forward to seeing you in the next video.