SQL
This week I will be sharing the progress I have made in my android development journey. A big part of developing apps is also being able to store data in an organized way. The most popular way big companies do that is by using a database management system as known as DBMS. I used to always hear about SQL and MYSQL and wondered what is the difference? I took a dive into databases and learned that SQL is the language itself and MYSQL is the database management system that actually holds the data. There are many different types of DBMS suck as MYSQL, Oracle, Microsoft SQL, and others. I chose MYSQL because I looked online to different internship opportunities and it looks like the most popular is MYSQL.
I started with first having to install the correct programs on my computer. This was a bit difficult on its own since databases are a bit complicated. I first installed MYSQL command line client. This is just a black terminal where you can write your MYSQL code. It is not user friendly unless you are used to coding on terminals but I got familiar with it really fast. The first picture above is the welcome screen for my terminal which I simply input my password. Once you do that the system is ready to start accepting SQL queries. I also decided to install a program called MYSQL workbench. This is a more user friendly program that connects to your MYSQL command line. This is the third image above which just by looking at it you can tell is much more user friendly. It even finishes of queries for you if you are typing SQL keywords.
I found a course online that I am going to start following to show me the fundamentals of using MYSQL. I figured out how to connect MYSQL command line and MYSQL workbench together. I created a database that is part of the course called books. I attached a copy of the code I learned in the course to create a database. Once I created the database I created a table called books. This will hold all my columns and rows of book data. It includes the a book id, title, author first name, author last name, released year, quantity in stock and number of pages. I also attached a copy of a screenshot of the code I used to create this table Each different column has a different data type which in this case is either INT or VARCHAR which I will get into more next week.
Comments
Post a Comment