sql Flashcards
turning str uppercase
Ucase()/Upper()
length of a str
Length()
concatenates/joins multiple str
concat()
removes extra spaces from right/left/both
ltrim(),rtrim(),trim()
extracts certain no of char from any part of string
substr()/mid()
searches for one str inside another and returns position
instr()
extracts char from left/right
left()/right()
extracts parts of date
month(), year()
extracts date from date and time
date()
What does Dayname() return?
It returns the name of the weekday.
What does Now() return?
It returns the current date and time.
What does MONTHNAME() return?
It returns the name of the month for a given date.
What does DAY() return?
It returns an integer value which represents the day of a month (1-31) of a specified date.