Professional Documents
Culture Documents
Last Minute Revision For IP Board Exam - MySQL
Last Minute Revision For IP Board Exam - MySQL
• Is null and is not null used to check for blank entries or any value respectively.
• Single row gives single output for single row and multiple rows gives single output for
multiple rows
SINGLE ROW FUNCTIONS:
1. CHAR / STRING FUNCTIONS :
1
• Do not get confuse between substr and instr.
(Substr gives substring and instr gives position of the first occurrence of the substring)
• While giving length of string, do count all the spaces leading, trailing and middle
( space is also counted as character)
2. NUMERIC FUNCTIONS:
3. DATE/TIME FUNCTIONS:
2
• Now() and curdate() does not accept any parameters, rest all methods do accept one or two
parameters.
• Year(), month(), day() gives integer value, Like year(dob)=2002 where dob is date value.
count() It returns the number of rows, including rows with NULL values in a
group.