The DECIMAL data type is similar to the INT data type in that when you use the number for math, it maintains precision. The difference though is obvious in the name. The DECIMAL data type allows for numbers after a decimal point (and before the decimal point). The DECIMAL data type allows us to store what is known as a fixed-point number. A fixed point number is a number that has a specific number of digits available to store numbers in. That means we can't do things like use a DECIMAL data type to store as many digits of PI as possible, because we can't store unlimited digits. We are limited to a certain number. There are two keywords you need to understand when you are working with the DECIMAL data type, precision and scale. Precision is the number of digits and scale is the number of those digits that will come after the radix. You are going to want to provide these numbers when you declare a column of this data type. For example, DECIMAL(5, 2) has a precision of 5 digits and a scale of 2 digits. That means we can store a maximum of two digits after the decimal and four digits total. This gives us a possible range from -999.99 to 999.99 The highest number of digits is 65, and the highest number of digits after the decimal is 30. This data type is also known as DEC, NUMERIC, and FIXED. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support me! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 9123 Caleb Curry
FLOAT and DOUBLE data types are data types that can be used to store numbers that can include decimal numbers. They are specifically used to store estimates. What do I mean? I mean that the precision of a FLOAT or DOUBLE value can be lost when doing math. The data types are only capable of maintaining a certain level of precision. The level of precision is usually adequate for most mathematical operations. If you need to store exact data, you will want to look into using the INT or DECIMAL data type instead. The numbers stored in a FLOAT or DOUBLE column are called floating point numbers, we'll see why in just a moment. Why are they called floating point numbers? let's look at a number. 150. This number could be represented as 150, or it could be represented as 1.5 * 10^2, or 1.5e2. With floating point numbers, scientific notation is used. These numbers are called floating point numbers because the decimal can float to different spots as we change the exponent. This means that the data type needs to store the number, how many decimal the number needs moved, and a sign bit. The benefit of floating point numbers is that they allow us to store pretty huge numbers. The down side is that they are not storing values exactly because they are limited in size. This means that only a certain level of precision is to be expected from a floating point data type. If you remember from the video of DECIMAL, precision is the number of digits in a number. As long as the precision for one of these data types exceeds the need for your specific data, the data type can work fine. For example, if you are storing a number like 15 trillion, you don't have to worry as much with precision as your number does not contain a lot of digits. This number can be represented as 1.5 x 10^13. This is a lot different than trying to store 1.5534534534 x10^13. Now we know both of these data types do not maintain a high number of digits correctly, but what is the difference between FLOAT and DOUBLE. The difference is the amount of storage they take up. Float takes up 4 bytes while DOUBLE takes up 8. The benefit in DOUBLE is that because it has more room to store data, it has a higher level of precision and can store bigger numbers. Now, what level of precision can you expect from either of these? FLOAT around 7 and DOUBLE around 15. Now, these data types are obnoxious because the exact values depend on your operating system and in general these monsters cannot be trusted. Especially when you start doing math with different numbers. In general, it is recommended to use the DOUBLE data type to have a higher level of precision and calculations in MySQL are done with DOUBLE. Always remember… prepare for trouble, make it double. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support me! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 9034 Caleb Curry
Course Content ======================= 1) JDBC In Simple Way 2) Storage Areas 3) JDBC 4) JDBC Architecture 5) JDBC API 6) Types of Drivers 7) Standard Steps For Developing JDBC Application 8) Select Operations And Non-Select Operations 9) Programs On Database Operations 10) Aggregate Functions 11) Real Time Coding Standards For JDBC Application 12) Working With MySQL Database 13) Life Cycle of SQL Query Execution 14) PreparedStatement (I) 15) SQL Injection Attack 16) Stored Procedures and CallableStatement 17) Cursors 18) Functions 19) Batch Updates 20) Handling Date Values For Database Operations 21) Working with Large Objects (BLOB and CLOB) 22) Connection Pooling 23) Properties 24) Transaction Management in JDBC ============================================= jdbc jdbc java tutorila jdbc java examples jdbc mysql examples Java Database Connectivity (JDBC) Adv Java JDBC Tutorial Java JDBC Tutorial jdbc tutorial for beginners JDBC Tutorial Introduction to JDBC Advanced Java Tutorial JDBC Tutorial in depth JAVA Database Tutorial JDBC with MySql Complete Course JDBC in Simple Way ============================== You an see more Java videos following link: Java tutorial by durga sir https://goo.gl/XWb4RL Java 9 by durga sir https://goo.gl/hXGyBW Java 1.8 Version New Features by Durga sir https://goo.gl/iHXXYU Adv Java JDBC Tutorial by Durga sir https://goo.gl/8q16Eo OCJA 1.8 Java SE 8 Programmer - I (1Z0 - 808 ) By Durga sir https://goo.gl/gC6R7f Core Java by NagoorBabu sir https://goo.gl/s6Nvj1 Advenced Java by Nagoorbabu sir https://goo.gl/ZZonzJ CoreJava by Ratan https://goo.gl/3VM19v Advanced Java jdbc by Ratan https://goo.gl/Rn2UXr Advjava tutorials - JSP by Ratan https://goo.gl/Z6ytxm Adv java servlets tutorial by ratan https://goo.gl/zTwi9y Servlet and JSP Tutorial by anji reddy https://goo.gl/jZMRUv Advanced Java Jdbc by Anjireddy https://goo.gl/16CGzX Hibernate byAnjireddy https://goo.gl/qQojvZ Struts by Anjireddy https://goo.gl/nE1Eof Spring by Mr.AnjiReddy https://goo.gl/NfN14R ADV JAVA by Naveen https://goo.gl/bhSsXF Spring by Mr.Naveen https://goo.gl/huVwFN Hibernate by Mr. Naveen https://goo.gl/TY3Wpd Struts by Mr.Naveen https://goo.gl/Vkmiw7
Views: 3950 Durga Software Solutions
Next up on our MySQL to-do list is to learn about storing dates and times. There are various data types in MySQL for storing dates and times. It seems MySQL and databases likes to break everything up into multiple data types to make things more organized at the consequence of being confusing and annoying. This video is going to be talking about the DATETIME, DATE, and TIME data types. These are all used to store, you guessed it, dates and times. The one you choose depends on your needs. If you just need dates, choose DATE. If you just need times, choose TIME, if you need both stored together, choose DATETIME. Now you set a column one of these data types whenever you want every row for this field to have some sort of date, time or both…but how exactly is the data formatted? This requires us to understand some convention. For example, in the USA at least, if you have something like 4:30AM, by convention you know the hour is 4 and the minutes are 30. But this is just an agreed upon convention. MySQL has its own convention…For example 2017-02-02. The first thing is the year, the second is the month, and the third is the day. That is for the DATE. The convention for time is 22:54:30. The first is the hour (military time), the second is the minute, and the third is the seconds. Lastly, there can actually be fractions of seconds…up to microseconds! .123456. To use fractional seconds though you must specify to MySQL the precision of the TIME or DATETIME when you create it, for example DATETIME(6) would allow microsecond precision. How do you actually give a date to MySQL? By that I mean let's say you have a table with a column of DATETIME(6), and you want to give a value for that column, how do you format it? It's quoted. For example: '2017-02-02 22:54:30.333333' MySQL interprets this as a DATETIME. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support me! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 40570 Caleb Curry
I decided that instead of going through all of the categories of data types real slow, I'm going to give you a video that gives you the most important data types. That way, you can have a pretty good idea of what data types you need to use and when. Also, if any of the info in this video is too fast, you can watch the next videos to get a more in depth understanding. The first data type is CHAR. This data type stores a string that is of a fixed length. You will only want to use this when you know the length of the data for the column. For example, you might have a column for phone numbers. As long as you know that every phone number is going to be the same format, you could use a column with the CHAR data type. You would just specify it as CHAR(length). VARCHAR works in a similar fashion to CHAR, but it works best for variable length data. That means that if you have a column where each row is going to have a different length, you would want to use VARCHAR. For example, if you had a column for an email address, each email is going to be any number of characters. Now, we are going to be going into numeric data types. For each of the numeric data types there are two variations. Signed and unsigned. Signed data types allow for negative values, but the highest value will be lower. Unsigned do not allow negatives but can store higher positive numbers. INT is the data type you use when you need whole numbers. This is likely going to be the data type used for ID columns. DOUBLE is the data type that can be used when you need to store a real number. This means that there can be numbers after a decimal point. There is also a data type called FLOAT. This works similarly but cannot handle as many numbers after the decimal. These data types have the downside in that they often cannot be trusted when doing math. Only use DOUBLES for data where it is acceptable to be pretty close to correct. DECIMAL is a datatype that can be used for numbers where precision is extremely important. For example, Decimal can be used for columns dealing with money, important measurements, or anything where we need the data to work 100% as expected in arithmetic. TIMESTAMP is a column that is used to easily record an instance in time. This is often used to record when row is created or updated. That's because it will automatically generate a value when an INSERT or UPDATE is issued against the database. DATE, DATETIME, and TIME are all used to store dates and times. There are some differences between these and a TIMESTAMP, but I'll just give you one for now to tease you To understand the differences between these and the timestamp, you need to understand something known as UTC time. UTC time is a standard that you can compare against all time zones. It is known as coordinated universal time. So for example, PST is 8 hours behind UTC. The different between TIMESTAMP and these is that TIMESTAMP will convert whatever value to UTC when stored, and convert it back to whatever your time zone is when you retrieve it. This means that if you want to store a date that is going to change to the users time zone when retrieved, use TIMESTAMP. If it needs to stay the same no matter what, use DATETIME. If that's not super clear, we'll try to discuss it in more detail in an upcoming video. The goal of this video was not to teach you the intimate details on defining data types. The goal was to give you a rough over view of the main data types you will find in MySQL. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support me! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 10208 Caleb Curry
Varchar is very similar to CHAR in that it is used to store strings, but there are some pretty big differences. The first difference is that when you store data less than the max it does not pad it with spaces to make it fit. The benefit in this is that you will save storage. The downside to this is that now MySQL is going to have to keep track of how many characters you have. To do this, each value is going to have an additional byte or two that MySQL can use. The max length is 65535 bytes. That is per value in that column! But you have to keep in mind encodings. If your characters are encoded with something such as UTF-8, each character can take up multiple bytes. The max size for a character in this case is 3 bytes. That means that we really can't store that many characters. Additionally, MySQL has a row limit of 65535 bytes (potential bytes…meaning declared sizes). What does this mean? It means that if you make this too big, you are not going to be able to create other columns. Earlier I said that there will be an additional byte or two for each value you put into this column. The purpose of this is to keep track of how long the string is. Why one or two and not one? The reason being is because with one byte we can only count to 255. if we want to keep track of bytes after that we need two bytes. This means that we actually can't store quite 65535 bytes. Realistically, we can't store that much because we have to store the length of the string, and each character can take up to 3 bytes which can push us over the row limit. This means the real max is a little less than a third of that. Not every character is going to take up 3 bytes, but MySQL assumes it will as to not cut you short. This is slightly different than CHAR because char you can store up to 255 characters, not bytes. Even if you use an encoding where some characters take up multiple bytes, you can still store 255 of them. Remember that reason for this is that VARCHAR is subject to the row-limit. MySQL will not let you go past the max and will tell you the appropriate max, so don't worry about it too much. You should try not to push your limits. Plus, most of the time you will not come even close to the max for most columns. Should you use the max? Varchar will only store what is needed to store a value, but you should still try to have the max size no more than what is needed. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support me! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 8813 Caleb Curry
This MySQL tutorial explains how to set data types for columns in tables using SQL. For more data types check out the following official MySQL site: http://dev.mysql.com/doc/refman/5.7/en/data-types.html View SQL playlist here: http://www.youtube.com/playlist?list=PLrTXCzXE7TKJ--7JpN9Rxx3CU3_VPWJWU
Views: 15409 ITSophy
Learn MySQL Data & Time Data Type with examples Date Datetime TimeStamp Time Year
Views: 15501 Elzero Web School
The last section of videos covered the string data types, now we are going to move on to the numeric data types. This video is going to discuss the INTEGER data types, or the INT data types. These data types are used to store whole numbers. That is, numbers without anything after a decimal. Just like with the TEXT data type, INT is broken up into multiple data types that can be used. It is actually broken up into 5 different data types. TINYINT, SMALLINT, MEDIUMINT, INT, BIGINT. Now, the confusing part here is the naming. That's because the only thing we have to compare this naming to is the TEXT data types. But they don't follow a consistent naming convention. For example, MEDIUMTEXT is larger than TEXT, but MEDIUMINT is smaller than INT. Additionally, there are 5 data types for the INT data type group, and lastly the biggest INT data type is called BIGINT whereas the biggest TEXT data type is called LONGTEXT. These are used to store exact values. What that means is that if you store a number and use it, you expect it to maintain precision. There are data types that are used for estimated values which we are going to discuss in more detail in an upcoming video. For now, let's focus on INT data types. You can find the exact storage limits for each of these, but here is some info: TINYINT - 255 SMALLINT - 65535 MEDIUMINT - 16 Million INT - 4 Billion BIGINT - Stinkin' a lot (18446744073709551615) Now note, in this situation, we will have to label each one of these as UNSIGNED. An unsigned number does not allow for negatives, but allows higher positive numbers. You can look up the INT data types to get the exact ranges for signed and unsigned. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support me! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 4668 Caleb Curry
The first category of data types that we are going to cover in this MySQL series are the string data types, or character data types. There are two that I am going to talk about in this video, CHAR and VARCHAR. We'll start with CHAR. CHAR is a string data type where you specify how many characters are allowed in parenthesis after you declare the column as this type. For example, we can say CHAR(50) to allow up to 50 characters for each value in that column. The thing to know about CHAR though is that it is a fixed-length string. That means every single value inside of that column is actually going to be whatever you declare the length as. So if you say CHAR(50), every string is going to be 50 characters long. If, for example, you have a row that only uses 40 characters, MySQL will pad the right side of the string with spaces until it fills 50 characters. Now, the highest value you can put in here is 255. The 255 refers to characters. This means that you can have strings with up to 255 characters. How does the computer know how to store these characters? That has to deal with the character set and the encoding of the characters. By default, MySQL is going to use UTF-8. We are not going to discuss UTF-8 in detail for a while but essentially UTF-8 says that each character can take up to 3 bytes of storage. 255 comes from the max number you can count to using binary. So if we are keeping track of how many values are in this column in an 8 bit number, 255 is the highest. If you don't know what I'm talking about it, we'll worry about it later. You can actually make the column CHAR(0). In this situation, the only thing you could put in as a value for this column is an empty string (''). When retrieving variable length CHAR data from a database it may not look like the database pads the value. That's because MySQL actually strips spaces from the value when presented. If you want to keep all of the spaces that have been added when you retrieve the value, you can do that. Look up PAD_CHAR_TO_FULL_LENGTH online. In the next video we are going to discuss VARCHAR. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support me! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 5225 Caleb Curry
Every column within a table has to be given what is known as a data type. A data type is a fairly simple concept when you dissect the word. It is literally the type of data. Why do we use types, though? The biggest benefit is so that MySQL knows how to interpret and work with our data. It also makes the database better at rejecting incorrect data. If we had to concept of a data type, there would be a lot more work involved in forcing data to be of the right format. It would also be harder for us to get the database to treat the data in the correct way. In addition to this, a database can optimize storage and performance for a column if everything is of the same data type. Because of this, each column can only support one data type. There are numerous different data types in MySQL and it helps us if we categorize them. We could say that most of the data types are either: String, Numeric, Temporal Now, there are few more categories we could make, but these are the main ones. We will worry about the other ones another day as I am only introducing the topic. A string data type is anything within quotes. Most databases use single quotes for string data. Inside of the quotes can be any number of characters. What is a character? Think of any letter, number, or symbol you can type. Some people call these letters, numbers, and symbols alphanumeric. Numeric data type includes only numbers. These data types are often used for data that you plan on using for mathematical calculations. Temporal data types are data types that are used for dates and times. Now, each data type is probably going to have some options you'll need to worry about, but one that comes up with every data type is storage. The reason we need to consider storage is because we may end up with millions of rows in a table and the difference between a few bytes for each row will make a huge difference when we look at the whole picture. When a data type gives you the option of size, you will want to choose a size that will be able to hold what you need, but nothing more. In the upcoming videos we are going to discuss the available data types in more detail. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support me! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 3865 Caleb Curry
Database Administrators Types. Roles, Duties and Responsibilities. DBA is backbone of a organisation. ob of DBA encompasses many roles. maintenance, administration, or tuning of established databases and applications. System Administrator oracle dba interview questions and answers for experienced
Views: 2435 Varun Pandey
Mit der nativen JSON Unterstützung in MySQL Version 5.7 können Sie die Flexibilität von JSON mit der relationalen MySQL Datenbank verbinden. In dieser Präsentation wird Carsten Thalheimer den neuen JSON Datentyp, die neuen MySQL Functions (um mit JSON Dokumenten zu arbeiten) und neue Indizierungsmöglichkeiten eingehen. With the new added native JSON support in MySQL 5.7, you can combine the flexibility of JSON with the strength of a relational MySQL database. In this presentation Carsten Thalheimer will explain the new JSON data type, the new set of functions for handling JSON documents, available storage and indexing options.
Views: 282 OracleAcademyChannel
In this post we will learn how to How To Install MySQL on Windows 10. The same procedure can be used for installing MySQL on Windows 8 / Windows 7. But first let's see What is MySQL . MySQL is a very popular, open source database. Officially pronounced “my Ess Que Ell” (not my sequel). Handles very large databases; very fast performance. Why are we using MySQL? Free (much cheaper than Oracle!) Each student can install MySQL locally. Easy to use Shell for creating tables, querying tables, etc.Easy to use with Java JDBC. While installing MySQL, it will prompt you to create a root password . At this stage please select a safe and secure password . Make sure you remember the password, to use it later.MySQL tutorial for beginners and professionals with examples on CRUD, insert statement, select statement, update statement, delete statement, use database, keys, joins etc. -------------------Online Courses to learn---------------------------- Data Analytics with R Certification Training- http://bit.ly/2rSKHNP DevOps Certification Training - http://bit.ly/2T5P6bQ AWS Architect Certification Training - http://bit.ly/2PRHDeF Python Certification Training for Data Science - http://bit.ly/2BB3PV8 Java, J2EE & SOA Certification Training - http://bit.ly/2EKbwMK AI & Deep Learning with TensorFlow - http://bit.ly/2AeIHUR Big Data Hadoop Certification Training- http://bit.ly/2ReOl31 AWS Architect Certification Training - http://bit.ly/2EJhXjk Selenium Certification Training - http://bit.ly/2BFrfZs Tableau Training & Certification - http://bit.ly/2rODzSK Linux Administration Certification Training-http://bit.ly/2Gy9GQH ----------------------Follow--------------------------------------------- My Website - http://www.codebind.com My Blog - https://goo.gl/Nd2pFn My Facebook Page - https://goo.gl/eLp2cQ Google+ - https://goo.gl/lvC5FX Twitter - https://twitter.com/ProgrammingKnow Pinterest - https://goo.gl/kCInUp Text Case Converter - https://goo.gl/pVpcwL ------------------Facebook Links ---------------------------------------- http://fb.me/ProgrammingKnowledgeLearning/ http://fb.me/AndroidTutorialsForBeginners http://fb.me/Programmingknowledge http://fb.me/CppProgrammingLanguage http://fb.me/JavaTutorialsAndCode http://fb.me/SQLiteTutorial http://fb.me/UbuntuLinuxTutorials http://fb.me/EasyOnlineConverter
Views: 691397 ProgrammingKnowledge
Oracle DB is big, and expensive, but it brings a lot to the "table" when compared with MySQL. MySQL has limited ability to audit. MySQL's security is unsophisticated. There are no groups or roles, no ability to deny a privilege (you can only grant privileges). A user who logs in with the same username and password from different network addresses may be treated as a completely separate user. There is no built-in encryption comparable to Oracle. MySQL's Authentication is built-in. There is no LDAP, Active Directory, or other external authentication capability. MySQL has no MPP (massively parallel processing ) support. Unlike Oracle MySQL has no fractional-second storage type for times, dates, or intervals. There is no RAC (Real Application Cluster) support in My SQL, and no failover or server promotion either. These are strong features in Oracle MySQL's number of joins per query is limited to 61. Oracle's limit is much larger. MySQL Replication is asynchronous and has many limitations and edge cases. For example, it is single-threaded, so a powerful slave can find it hard to replicate fast enough to keep up with a less powerful master.
Views: 21594 Biz of Tech
Explains the SQL CHAR or CHARACTER data type. From http://ComputerBasedTrainingInc.com SQL Course. Learn by doing SQL commands for ANSI Standard SQL, Access, DB2, MySQL, Oracle, PostgreSQL, and SQL Server.
Views: 528 cbtinc
Hello friends, in this video you will learn how to convert Oracle to MYSQL using SQLIE App. SQLIE is Converting Oracle Schema Tables in two steps: 1-Export Oracle Source Schema Tables Data and generating SQLIE Files. 2-Import SQLIE Generated files to the Destination MYSQL DataBase.
Views: 806 SQLIE
Oracle is the most powerful DBMS in the world. However, Oracle's expensive and complex replication makes it difficult to build highly available applications or move data in real-time to data warehouses and popular databases like MySQL. In this webinar you will learn how Continuent Tungsten solves problems with Oracle replication at a fraction of the cost of other solutions and with less management overhead too -- think "Oracle GoldenGate without the price tag!" We will demo constructing a highly available site using Oracle-to-Oracle replication. We will then show you how to replicate data in real time from Oracle to MySQL as well as load a data warehouse.
Views: 3049 Petri Virsunen
Explains the SQL LONG VARCHAR data type. From http://ComputerBasedTrainingInc.com SQL Course. Learn by doing SQL commands for ANSI Standard SQL, Access, DB2, MySQL, Oracle, PostgreSQL, and SQL Server.
Views: 736 cbtinc
A video tutorial showing you how to store images inside a database using the BLOB data type. The showing you how to show that image on a page. http://www.abell12.com http://www.facebook.com/pages/Abell12/265102633605437
Views: 264599 abell12
Read the Blog: https://www.calebcurry.com/blogs/database-clustering/intro-to-database-clustering Get ClusterControl: http://bit.ly/ClusterControl In this video we are going to be discussing database clustering and how to manage database clusters with ClusterControl. Database clustering is when you have multiple computers working together that are all used to store your data. There are four primary reasons you should consider clustering. Data redundancy, Load balancing (scalability) High availability. Monitoring and Automation That is an intro to a few of the reasons having a cluster is a good idea. Obviously, not everyone needs a cluster. A cluster can be overkill. But the best way to know is to learn more about them, so I’ll see you in the next video! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support me! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 26330 Caleb Curry
Java JDBC Connection with Oracle, MySQL and Ms Access Database - Theory For Students of B.Tech, B.E, MCA, BCA, B.Sc., M.Sc., Courses - As Per IP University Syllabus and Other Engineering Courses
Views: 35600 Easy Engineering Classes
In this tutorial we'll learn to use the INSERT Query to copy data from one table into another.
Views: 269505 The Bad Tutorials
NEED TO LEARN JAVA? - 5 FREE JAVA VIDEO COURSES - CLICK HERE - https://goo.gl/7i95F8 --- View more videos on my "Java JDBC Tutorial" Playlist: http://goo.gl/crT4nS Download Java Source Code: http://www.luv2code.com/?p=1057 Follow Me on Twitter: https://twitter.com/luv2codetv Please SUBSCRIBE to this channel: https://www.youtube.com/user/luv2codetv?sub_confirmation=1 --- In this video tutorial we will learn how to use JDBC to read and write BLOB with MySQL. --- Transcript Time - 00:00 Hi, this is Chad (Shod) with luv2code.com. Welcome back to another tutorial on Java JDBC. In this video we're going to learn how to read and write BLOBs. For this tutorial we're going to use the employees table. I have a SQL script that will create the table and add sample data for you. You can download it from the link below. The file is sql/table-setup.sql. Time - 00:28 So what exactly is a BLOB? Well a BLOB is basically binary data that we store in the database. You normally use BLOBs to keep track of documents, images, audio, or any other binary object that you have. Note that not all databases have support for BLOBs. In this example we’re going to make use of MySQL and they have BLOB support. Time - 00:48 On this slide we will learn how to create a BLOB column. So when we create a table in MySQL we add a column with the BLOB data type. On this slide I want to learn how to write a BLOB to a database. For this example I'm going to add a resume for an employee. I'm going to read a local PDF file and I'll take that file and update the database with the binary data that's the actual content of PDF file. Let's walk through the code. Time - 01:17 At the beginning I’ll set up a SQL statement. I’ll say update employees set resume equals to question mark where the email address equals [email protected] We’re only going to make a change for this John Doe employee, set up a prepared statement, and then I go, we’re going to create a file that's an actual handle to the local file sample_resume.pdf. Then I’ll set, on my statement I’ll set the binary stream, that first parameter for the resume comma the input. That's the input stream I have for that file. Then I actually call my statement .executeUpdate. That will actually update the database with the binary data. Time - 01:54 All right so let's switch over to Eclipse and let’s look at a very simple demo. I have a program called WriteBlobDemo. In this program we're going to actually read a resume from a local file system and write it as a BLOB to the database. I’ll walk through the code here. The first thing we do is we get a connection to the database. We prepare a statement. We're going to update employees, set resume equals to question mark where email equals [email protected] So we’re going to update the resume for John Doe. Time - 02:22 Then I’ll move down, I’ll set up a file handle for this file sample_resume.pdf. I’ll set up an input stream on that file and then I’ll set that as the parameter for our binary stream for our prepared statement. Then I’ll move through and I’ll actually do an execute update. This will actually store this binary file from the file system into the actual database column. Time - 02:47 I just ran the application and here's the output of the program. So beginning it says that it’s reading the file and gives me the full path to the file just for sanity sake, I know which file is actually reading. Then it tells me that it's storing the resume in the database for our employee [email protected] and then it says that it completed successfully. Excellent. Time - 03:10 Now let's move over to MySQL tool and verify this. I'll take a look at the employees there in the database right now. l’ll run this query select * from employees and I'll get a list of the actual employees. Notice here for John Doe there’s an entry here for a resume, there's a BLOB entry. Note all the other entries are null. So we have a BLOB entry here. I can select this entry. I can right click. I can say, “Open Value in Editor” and it’s going to show me this BLOB. Again, it's a binary large object so we see all this binary data. Actually it should be displayed as hex. Time - 03:50 Instead of looking at it in this fashion there's a tab here called “Image.” I can select this tab and now it'll actually show me this image or the actual data as a PDF that I can view. This is the actual PDF document for this employee, John Doe. This looks really good. We know that we were successful in storing the BLOB in the actual database. Time - 04:18 Now that we know how to write BLOBs in the database let's learn how to read a BLOB from the database. In this example I'm going to read the employee’s resume from the database as a BLOB and then store it as a file on my local files system. Let's walk through the code. [snip] .... see the Transcripts tab for details.
Views: 60542 luv2code
Learn how to create SQL Joins. The first 10 minutes teach you the basics. Inner Join, Left Outer Join, Right Outer Join, and Full Outer Join. The second 10 minutes show you are few techniques that will help you as you start building joins. READ THE ORIGINAL ARTICLE WITH THE TABLE SCRIPS http://www.sqltrainingonline.com/sql-joins-tutorial-for-beginners/ YOUTUBE NEWS UPDATES http://www.youtube.com/user/sqltrainingonline VISIT SQLTRAININGONLINE.COM FOR TONS MORE VIDEO NEWS & TIPS http://www.sqltrainingonline.com SUBSCRIBE FOR OTHER SQL TIPS AND NEWS! http://www.youtube.com/subscription_center?add_user=sqltrainingonline SUBSCRIBE TO OUR EMAIL LIST! http://www.sqltrainingonline.com LET'S CONNECT! Facebook: http://facebook.com/SQLTrainingOnline Twitter: http://twitter.com/sql_by_joey Linkedin: http://linkedin.com/in/joeyblue SQLTrainingOnline: http://www.sqltrainingonline.com
Views: 213463 Joey Blue
Explore the full course on Udemy (special discount included in the link): https://www.udemy.com/the-ultimate-hands-on-hadoop-tame-your-big-data/?couponCode=HADOOPUYT Choosing the right database for your application is no easy task. You have a wide variety of options relational databases such as MySQL, or distributed NoSQL solutions such as MongoDB, Cassandra, and HBase. NoSQL has come to mean not only SQL as many distributed database systems do in fact support SQL-style queries, as long as you are not doing complex join operations and this further blurs the lines between these systems. We will talk about how to analyze the requirements of your system in terms of consistency, availability, and partition-tolerance, and how to apply the CAP theorem to guide your choice after showing you where different database technologies fall on the sides of the CAP triangle. We will also talk about more practical considerations, such as your budget, need for professional support, and the ease of integration into the other systems already in place in your organization. Maybe you dont even need a distributed storage solution at all! Choosing the right technology for your data storage will save you a lot of pain as your application grows and evolves and making the wrong choice can lead to all sorts of maintenance problems and wasted work. Your instructor is Frank Kane of Sundog Education, bringing nine years of experience as a senior engineer and senior manager at Amazon.com and IMDb.com, where his job involved extracting meaning from their massive data sets, and processing that data in a highly distributed manner.
Views: 40632 Udemy Tech
NEED TO LEARN JAVA? - 5 FREE JAVA VIDEO COURSES - CLICK HERE - https://goo.gl/7i95F8 --- View more videos on my "Java JDBC Tutorial" Playlist: http://goo.gl/crT4nS Download Java Source Code: http://www.luv2code.com/?p=1095, Follow Me on Twitter: https://twitter.com/darbyluvs2code Please SUBSCRIBE to this channel: https://www.youtube.com/user/luv2codetv?sub_confirmation=1 --- In this video tutorial we will learn how to use JDBC to read and write CLOB with MySQL. ---
Views: 25728 luv2code
SQL Tutorial on Advanced Subqueries returning multiple columns Check out our website: http://www.telusko.com Follow Telusko on Twitter: https://twitter.com/navinreddy20 Follow on Facebook: Telusko : https://www.facebook.com/teluskolearnings Navin Reddy : https://www.facebook.com/navintelusko Follow Navin Reddy on Instagram: https://www.instagram.com/navinreddy20 Subscribe to our other channel: Navin Reddy : https://www.youtube.com/channel/UCxmkk8bMSOF-UBF43z-pdGQ?sub_confirmation=1 Telusko Hindi : https://www.youtube.com/channel/UCitzw4ROeTVGRRLnCPws-cw?sub_confirmation=1
Views: 71217 Telusko
There are all kinds of databases in this world. The one we are going to be studying in this series is called MySQL. MySQL is free! There are enterprise versions, but we will be using the free and open source version in this series. Now, I've done a MySQL series before, but the series is already many years old. It is still a good series, but I think it is time for a new one. What is a database? A database is a software that is designed to store a bunch of information, or data. What is data? Anything that is needed to be stored for later use. Usually databases are used for businesses, so data can be analyzed to make business decisions. For example, we can look at sales. When does our data sell the most? How many sales did we get? Who bought our product? What was the price at the time? etc. We can put all of this data together and get a summation as to what sales are like. There are many other uses. For example, websites. Websites store your information so that you can revisit the website at a later day and have your information still there. There are other ways you can store data. For example, spread sheets, CSV, .txt files, cookies and sessions, etc. What is a table? A table is a square with a grid. Columns go from top to bottom, and rows go from left to right. The downsides of a database is that it is more complex, harder to learn, and easy to get yourself in a pickle if you don't know what you are doing. That being said, there are a lot of benefits to using a database. To express the benefits, I am going to compare a database to a spreadsheet. Spreadsheets are all or nothing. You can not easily make a certain column private. Spreadsheets do not easily support multiple people with different roles. Easier to select data, such as just a phone number. Higher security, back up, and recovery options. The amount of information you can store in a database is much more than a spreadsheet. Why MySQL when there are so many other databases available? It's supposedely the world's most popular open source database, so there is a ton of community support and questions and answers on the interwebs. In my oppinion, MySQL has a smaller learning curve than most of the other database systems. It is often used for web development, but can be used for small business and up. Againsts Oracle and SQL server, MySQL is usually considered the most "user" level, whereas Oracle is often considered the most "professional / mission-critical". SQL Server is often considered somewhere in the middle. That means for small to medium size projects, MySQL is often chosen. Hopefully you can see how helpful a database can be. In the next video we are going to learn more about MySQL. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HELP ME! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 53881 Caleb Curry
SQL has served IT for 30 years now and is far from being obsolete. In recent years NoSQL databases have emerged due to different needs of the developer. While offering the benefit of storing different data structures almost every NoSQL engine has adopted SQL or an SQL-like query language back into the engine. There are advantages on both sides but how can one combine the power of SQL and NoSQL into one database? We will answered that question in MySQL 5.7 with a set of new features for storing unstructured data in JSON. Out of the box MySQL now supports a JSON data type, a set of functions for manipulating JSON data, and the ability to query JSON using the power of SQL. Indexing is also supported via the addition of generated columns. It is now possible to combine the benefits of the schema and schemaless NoSQL world, and this session will explain the benefits to each approach. Morgan Tocker MySQL Senior Product Manager Oracle
Views: 1641 Oracle Developers
How to draw a diagram representing the entities, relationships and fields of a relational database. If this video helped you, you may also benefit from these further examples of constructing database schema: http://youtu.be/0r43J3qkkT4 - identifying the tables in a given situation http://youtu.be/aWP2MLAYQfk - building the schema and determining the relationships I'm Mr. Woo and my channel is all about learning - I love doing it, and I love helping others to do it too. I guess that's why I became a teacher! I hope you get something out of these videos - I upload almost every weekday, so subscribe to find out when there's something new! For categorised playlists: http://www.misterwootube.com Main channel: http://youtube.com/misterwootube Discussion: http://facebook.com/misterwootube Worksheets and other resources: http://woo.jamesruse.nsw.edu.au
Views: 360818 Eddie Woo
This is the video series for MySQL Tutorials for beginners in Hindi and this video covers details on char & varchar data types in MySQL.
Views: 9198 PHP in Hindi
Please Like, Subscribe the channel and give your valuable feedback. Need your Support.. Lecture By: Mr. Varun Singla Facebook page link : https://www.facebook.com/gatesmashers/ #Subqueries#SqlDBMS#freeEducationGATE
Views: 173733 Gate Smashers
DevConf 2016 "Новые возможности MySQL 5.7", Дмитрий Ленев (Oracle) MySQL 5.7 наиболее свежая стабильная ветка СУБД MySQL. Данный доклад посвящен новым функциональным возможностям появившимся в этой версии. В частности мы поговорим о: - родной поддержке JSON данных и операций с ними - генерируемых столбцах - улучшениях в системе безопасности - многочисленных измененениях в InnoDB - изменениях в репликации, таких как поддержка multi-source репликации. - многом другом Кроме того будут освещены возможности связанные с новым X плагином, который стал доступен с релизом версии 5.7.12 в апреле этого года. Обсудим использование MySQL как Document Store, новый протокол и X DevApi для коннекторов, новый клиент MySQL Shell. http://www.slideshare.net/BadooDev/mysql-57-64122631
Views: 1835 Badoo Tech
In this video i have show Deffirent types of data in my sql types are 1. Numeric(integer) INT, TINYINT, SMALLINT, MEDIUMINT, BIGINT, FLOAT, DOUBLE, DECIMAL 2. Date and Time DATE, DATETIME, TIMESTAMP, TIME, YEAR 3. String CHAR, VARCHAR, BLOB or TEXT, TINYBLOB or TINTEXT, BEDIUMBLOB or BEDIUMTEXT,LONGBLOB or LONGTEXT, ENUM
Views: 109 PROGRAMMING ZONE
В данном видео уроке мы поговорим о символьном типе данных и его реализации в базах данных MySQL сервера. Отметим, что MySQL поддерживает стандартный набор символьных типов данных для SQL, который представлен типами данных CHAR и VARCHAR. Тип данных CHAR в базах данных MySQL севера позволяет хранить строки фиксированной длинны, а тип данных VARCHAR используется в базах данных для хранения строк переменной длины. Также стоит сказать, что количество символов, хранимых в столбцах CHAR и VARCHAR указывается при создании таблицы. Рубрика по базам данных: http://zametkinapolyah.ru/zametki-o-mysql/sqlite/ Рубрика MySQL: http://zametkinapolyah.ru/zametki-o-mysql/server-mysql Паблик блога в ВК: https://vk.com/zametkinapolyah Тематическая группа в ВК: https://vk.com/zametki_bd Помощь проекту: WMR: R28827266698 WMZ: Z293550531456 Яндекс.Деньги: 410011531129223
Views: 1527 Кирилл Антонов
https://www.guru99.com/introduction-to-database-sql.html This Database tutorial explains the concept of DBMS (Database Management System).To help beginners, it cites examples of real-life data base management systems. It explains types of DBMS for beginners. It explains how SQL works. This video course is a complete introduction to Database. Click on the time points below to view different sections! 00:35 What is Data base? 00:52 What is a DataBase Management System (DBMS)? What is a Database? Database is a systematic collection of data. Databases support storage and manipulation of data. Databases make data management easy. What is SQL? Structured Query language (SQL) pronounced as "S-Q-L" or sometimes as "See-Quel"is actually the standard language for dealing with Relational Databases. Like, share and subscribe our channel for more videos. Enjoy our free tutorial on our YouTube channel and our website. Watch more videos on our YouTube channel at https://www.youtube.com/channel/UC19i1XD6k88KqHlET8atqFQ READ this as a book on Amazon by viewing at http://amzn.to/2qaUsUv (SQL) Visit our website for more! www.guru99.com FACEBOOK! Would you prefer to watch more about us? Like our page for more https://www.facebook.com/guru99com/ TWITTER! Tweet for us on Twitter with #guru99 and follow us on https://twitter.com/guru99com THANKS! We appreciate you reading this and hope you have a wonderful day! Sincerely, Guru99
Views: 1299322 Guru99
Explains the BLOB Binary Large OBject data type VARGRAPHIC. From http://ComputerBasedTrainingInc.com SQL Course. Learn by doing SQL commands for ANSI Standard SQL, Access, DB2, MySQL, Oracle, PostgreSQL, and SQL Server.
Views: 1170 cbtinc
Popular Relational Database Management Systems, Oracle Database Management System, Microsoft SQL Server, and MYSQL Database Management Systems. Top 10 Relational Database Management Systems include Commercial and Open Source. Top 10 Database Management Systems 1. Oracle 2. MySQL 3. Microsoft SQL Server 4. PostgreSQL 5. MongoDB 6. DB2 7. Cassandra 8. Microsoft Access 9. SQLite 10. Redis ----------------------------------------------------- 1. Oracle Oracle Database Oracle RDBMS is an Object Relational Database Management System from the Oracle Corporation. Oracle database is the first database designed for enterprise grid computing. The enterprise grid computing provides the most flexible and cost effective way to manage information and applications. 2. MySQL MySQL is a database management system that allows us to manage relational databases. It is open source software backed by Oracle. Even though MySQL is open source software, you can buy a commercial license version from Oracle to get a premium support services. 3. Microsoft SQL Server SQL Server is a Relational Database Management System (RDBMS) developed by Microsoft. It is also an ORDBMS, Platform dependent, both GUI and command based software and SQL Language which is an IBM product (Freeware). 4. PostgreSQL PostgreSQL is a powerful, open source object-relational database management system. PostgreSQL runs on all major operating systems, including Linux, UNIX (AIX, BSD, HP-UX, SGI IRIX, Mac OS X, Solaris, Tru64), and Windows. 5. MongoDB MongoDB is a cross-platform, document oriented database that provides, high performance, high availability, and easy scalability. MongoDB works on concept of collection and document. 6. DB2 DB2 is a database product from IBM. It is a Relational Database Management System (RDBMS). DB2 is designed to store, analyze and retrieve the data efficiently. 7. Cassandra Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers. It is a database that provides a mechanism to store and retrieve data other than the tabular relations used in relational databases. 8. Microsoft Access Microsoft Access is a member of the Microsoft Office suite of applications, It is a database management system (DBMS) that combines the relational Microsoft Jet Database Engine with a graphical user interface and software-development tools. Microsoft Access stores data in its own format based on the Access Jet Database Engine. It can also import or link directly to data stored in other applications and databases. 9. SQLite SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. SQLite is available on UNIX (Linux, Mac OS-X, Android, iOS) and Windows. A complete SQLite database is stored in a single cross-platform disk file. 10. Redis Redis is an open source, in-memory data structure store, used as database, cache and message broker. Redis supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries.
Views: 19128 G C Reddy
To ask your doubts on this topic and much more, click on this Direct Link: http://www.techtud.com/video-lecture/lecture-foreign-key IMPORTANT LINKS: 1) Official Website: http://www.techtud.com/ 2) Virtual GATE: http://virtualgate.in/login/index.php Both of the above mentioned platforms are COMPLETELY FREE, so feel free to Explore, Learn, Practice & Share! Our Social Media Links: Facebook Page: https://www.facebook.com/techtuduniversity Facebook Group: https://www.facebook.com/groups/virtualgate Google+ Page: https://plus.google.com/+techtud/posts Last but not the least, SUBSCRIBE our YouTube channel to stay updated about the regularly uploaded new videos.
Views: 281315 Techtud
Session 1: MySQL Architecture. To Learn or Teach Linux visit www.theskillpedia.com, A Marketplace for Learners and Trainers. www.hometutor.net.in. To know about me visit my profile at www.rnsangwan.com. I deliver online training on Business Analysis, Linux, Unix, MySQL, Sybase, SQL Server, Perl, Python, R Data Analysis, Scala etc. http://youtube.com/user/theskillpedia General RDBMS Architecture • It has three main components: • Application Layer • Logical Layer • Physical Layer MySQL Architecture Overview APPLICATION LAYER • Users and clients interacts with the MySQL RDBMS. • Three components: ◦ Administrators ◦ Clients ◦ Query Users • Query users interact with MySQL RDBMS using “mysql”. MySQL Architecture Overview LOGICAL LAYER • The logical layer of MySQL architecture is divided into various subsystems. ◦ Query Processor. ◦ Transaction Management. ◦ Recovery Management. ◦ Storage Management. • These sub systems work together to process the requests issued to the MySQL database server. Physical Layer Physical Layer • Data files, which store the user data in the database • Data dictionary, which stores metadata about the structure of the database Physical Layer Database directories. Each database corresponds to a single directory. Table format files (.frm files) that contain a description of table structure. The InnoDB storage engine has its own tablespace and log files. The default tablespace file is named ibdata1 and the default log files are named ib_logfile0 and ib_logfile1. Server log files and status files. Physical Layer A storage engine has a particular set of operational characteristics. When you create a table, you can choose what storage engine to use. MySQL’s Logical Architecture ◦ Embedded DML Pre-compiler. ◦ DDL Compiler. ◦ Query Parser. ◦ Query Preprocessor. ◦ Security/Integration Manager. ◦ Query Optimizer. ◦ Execution Engine. • The output of one of the above component becomes the input for another. • Query processor layer is scalable and evolvable. Transaction Management • It facilitates concurrent data access. • Provides locking facility. • Ensures multiple users/sessions access data simultaneously in a consistent way. • Prevents data corruption or data damage. • Lock Manager is the sub component name that handles locking. Recovery Management • Log Manager ◦ Logs every operation executed in the database. ◦ Stores the operations logs as MySQL Commands. • Recovery Manager ◦ Responsible for recovering the database to its last stable state. ◦ Uses the logs created by the log manager. Memory Management • Buffer Manager ◦ It allocated memory resources. • Resource Manager ◦ Accepts the requests from execution engine. ◦ Requests the details from buffer manager. ◦ It actually receives references of data with memory from buffer manager. ◦ Returns this data to the upper layer. MySQL Concepts: InnoDB It supports row-level locking. Foreign key referential-integrity constraint can be defined. Table can extend to any size even beyond 2 GB and power loss recovery is fast. The InnoDB stores user data in clustered indexes This reduces I/O for common queries based on primary keys InnoDB should be used for applications requiring the data integrity. MyISAM is the improved version of the original storage engine of MySQL, ISAM After MySQL 3.23, MyISAM replaced ISAM as the default storage engine. It is also used for data warehousing The size of MyISAM table depends on the host operating system The foreign key constraint cannot be defined MyISAM is the only storage engine that supports Full-text search It also supports one auto increment column per table A high-byte-first pattern for saving numeric key values ensures faster indexing It can be used where fulltext indexing is needed Communication Protocols A MySQL client program can connect to a server running on the same machine or another machine. MySQL supports connections between clients and the server using several networking protocols. Some protocols are applicable for connecting to either local or remote servers. Others can be used only for local servers. Visit www.rnsangwan.com
Views: 35447 TheSkillPedia