Functions that return character strings
Functions that return character strings |
Description |
Example |
|
Converts an ASCII code to a one-character string |
|
|
Returns the sign-in ID specified at connect time |
|
|
Returns the name of the day that corresponds to a specified date |
|
|
Removes trailing blanks from a string |
|
|
Removes leading and trailing blanks from a string |
|
|
Removes leading blanks from a string |
|
|
Changes each letter of a string to uppercase |
|
|
Changes each letter of a string to lowercase |
|
|
Returns leftmost characters of a string |
|
|
Returns the names of the calendar month |
|
|
Returns rightmost characters of a string |
|
|
Returns a substring of a string, with parameters of the string, the first character to extract, and the number of characters to extract (optional) |
|
|
Generates a string of blanks |
|
|
Converts a value of any type to a character string |
|
|
Returns the time of day as a string |
At 9:49 PM, |
|
Returns the sign-in ID specified at connect time |
|
Note The TIME()
function is deprecated. Use the SQL standard CURRENT_TIME
instead.
SELECT CHR(67) + SPACE(1) + CHR(70) FROM Salespeople
SELECT RTRIM(' ' + Salespeople.Salesperson_ID) AS agg FROM Salespeople
SELECT TRIM(SPACE(1) + Salespeople.Salesperson_ID) AS agg FROM Salespeople
SELECT LTRIM(' ' + Salespeople.Salesperson_ID) AS agg FROM Salespeople
SELECT UPPER(Salespeople.Salesperson) AS agg FROM Salespeople
SELECT LOWER(Salespeople.Salesperson) AS agg FROM Salespeople
SELECT LEFT(Salespeople.Salesperson, 5) AS agg FROM Salespeople
SELECT RIGHT(Salespeople.Salesperson, 7) AS agg FROM Salespeople
SELECT SUBSTR(Salespeople.Salesperson_ID, 2, 2) +
SUBSTR(Salespeople.Salesperson_ID, 4, 2) AS agg FROM Salespeople
SELECT SUBSTR(Salespeople.Salesperson_ID, 2) +
SUBSTR(Salespeople.Salesperson_ID, 4) AS agg FROM Salespeople
SELECT SPACE(2) + Salespeople.Salesperson_ID AS Salesperson_ID FROM Salespeople
SELECT STRVAL('60506') AS agg FROM Sales_Data WHERE Sales_Data.Invoice = 1