介绍一下Transact-SQL中SPACE函数的用法
SPACE函数的语法是SPACE(n)
SPACE函数的作用是范围n个空格
SPACE函数的参数n是指示空格个数的正整数。如果n为负,则返回空字符串。
如:
SELECT RTRIM(LastName) + ',' + SPACE(2) + LTRIM(FirstName)
FROM Person.Contact
ORDER BY LastName, FirstName;
GO
SPACE函数的作用是范围n个空格
SPACE函数的参数n是指示空格个数的正整数。如果n为负,则返回空字符串。
如:
SELECT RTRIM(LastName) + ',' + SPACE(2) + LTRIM(FirstName)
FROM Person.Contact
ORDER BY LastName, FirstName;
GO
【介绍一下Transact-SQL中SPACE函数的用法】相关文章
1. 介绍一下Transact-SQL中SPACE函数的用法
2. 若通过ObjectOutputStream向一个文件中多次以追加方式写入object,为什么用ObjectInputStream读取这些object时会产生StreamCorruptedExcepti
4. 介绍一下SQL中union,intersect和minus
6. How to detect and cleanup pending transactions in Oracle
7. mysql_pconnect()和mysql_connect()有什么区别
9. What\'s the difference between Debug and Trace class? (Debug类与Trace类有什么区别)
10. 介绍一下Prototype的$()函数,$F()函数,$A()函数都是什么作用?
本文来源:https://www.mianshiwenti.com/a13276.html
进入下载页面
上一篇:索引覆盖(Index Covering)查询含义
下一篇:简述数据库的设计过程
﹝介绍一下Transact-SQL中SPACE函数的用法﹞相关内容
- 介绍一下mysql的日期和时间函数
- const char*, char const*, char*const的区别是什么
- What\'s the difference between an interface and abstract class? (接口与抽象类有什么区别)
- 编写类String 的构造函数、析构函数和赋值函数
- 编写类String的构造函数、析构函数和赋值函数
- SQL中where和having的区别
- 有abstract方法的类一定要用abstract修饰吗
- Can a struct inherit from another struct? (结构体能继承结构体吗)
- 声明struct x1 { . . . }; 和typedef struct { . . . }x2;有什么不同
- String s = new String(“xyz”);创建了几个String Object?