200616_classwork_70749_2
200616_classwork_70749_2
DATABASE CONCEPTS
AND
SESSION 11
1
MYSQL ELEMENTS:
There are four basic elements in MySQL .They are:
1. Literals
2. Data Types
3. Nulls
4. Comments
Literals
Data Type
Null: If a column in a row has no value then the column is called Null.
Null and Zero are not equal.
Any arithmetic operations done with null returns the output as Null
NullX3=Null
4-Null =Null
7/Null =Null
2
Begin the comment with -- (followed by a
space).Proceed with the text of the comment.
Example: -- not exceed more than one line
II. Multi-line comment: These comments exceed more than one line.
It is begin with /*.Proceed with the text of the comment. This text
can span multiple lines.
Example: /* this is a multiline comment
Comments exceed more than one line.*/