返回字符串的函数
返回字符串的函数 |
说明 |
示例 |
|
将 ASCII 代码转换为一个字符的字符串 |
|
|
返回在连接时指定的登录 ID |
|
|
返回与指定日期对应的是星期几 |
|
|
删除字符串末尾的空格 |
|
|
删除字符串的前导和末尾空格 |
|
|
删除字符串的前导空格 |
|
|
将字符串的每个字母更改为大写 |
|
|
将字符串的每个字母更改为小写 |
|
|
返回字符串最左侧的字符 |
|
|
返回日历月份的名称 |
|
|
返回字符串最右侧的字符 |
|
|
返回字符串的子字符串,含字符串的参数,要提取的第一个字符和要提取的字符数(可选) |
|
|
生成空格字符串 |
|
|
将任何类型的值转换为字符串 |
|
|
以字符串的形式返回当天的时间 |
在晚上 9:49, |
|
返回在连接时指定的登录 ID |
|
注释 TIME()
函数已弃用。请改为使用 SQL 标准 CURRENT_TIME
。
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