Azure Synapse Analytics 中专用 SQL 池的 T-SQL 语言元素
专用 SQL 池支持的 T-SQL 语言元素的相关文档的链接。
核心元素
批、流控制和变量
- BEGIN...END
- BREAK
- DECLARE @local_variable
- IF...ELSE
- RAISERROR
- SET@local_variable
- THROW
- TRY...CATCH
- WHILE
运算符
要匹配的通配符
- =(等于)
- >(大于)
- <(小于)
- >=(大于或等于)
- <=(小于或等于)
- <>(不等于)
- !=(不等于)
- AND
- BETWEEN
- EXISTS
- IN
- IS [NOT] NULL
- LIKE
- NOT
- OR
位运算符
函数
- @@DATEFIRST
- [@@ERROR]https://learn.microsoft.com/sql/t-sql/functions/error-transact-sql?toc=/synapse-analytics/sql-data-warehouse/toc.json&bc=/synapse-analytics/sql-data-warehouse/breadcrumb/toc.json&view=azure-sqldw-latest)
- @@LANGUAGE
- @@SPID
- @@TRANCOUNT
- @@VERSION
- ABS
- ACOS
- [ASCII]https://learn.microsoft.com/sql/t-sql/functions/ascii-transact-sql?toc=/synapse-analytics/sql-data-warehouse/toc.json&bc=/synapse-analytics/sql-data-warehouse/breadcrumb/toc.json&view=azure-sqldw-latest)
- ASIN
- ATAN
- ATN2
- [BINARY_CHECKSUM]https://learn.microsoft.com/sql/t-sql/functions/binary-checksum-transact-sql?toc=/synapse-analytics/sql-data-warehouse/toc.json&bc=/synapse-analytics/sql-data-warehouse/breadcrumb/toc.json&view=azure-sqldw-latest)
- CASE
- CAST 和 CONVERT
- CEILING
- CHAR
- CHARINDEX
- CHECKSUM
- COALESCE
- COL_NAME
- COLLATIONPROPERTY
- CONCAT
- COS
- COT
- COUNT
- CONCAT_WS
- COUNT_BIG
- CUME_DIST
- CURRENT_TIMESTAMP
- CURRENT_USER
- DATABASEPROPERTYEX
- DATALENGTH
- DATEADD
- DATEDIFF
- DATEFROMPARTS
- DATENAME
- DATEPART
- DATETIME2FROMPARTS
- DATETIMEFROMPARTS
- DATETIMEOFFSETFROMPARTS
- DAY
- DB_ID
- DB_NAME
- DEGREES
- DENSE_RANK
- DIFFERENCE
- EOMONTH
- ERROR_MESSAGE
- ERROR_NUMBER
- ERROR_PROCEDURE
- ERROR_SEVERITY
- ERROR_STATE
- EXP
- FIRST_VALUE
- FLOOR
- GETDATE
- GETUTCDATE
- HAS_DBACCESS
- HASHBYTES
- INDEXPROPERTY
- ISDATE
- ISNULL
- ISNUMERIC
- LAG
- LAST_VALUE
- LEAD
- LEFT
- LEN
- LOG
- LOG10
- LOWER
- LTRIM
- MAX
- MIN
- MONTH
- NCHAR
- NTILE
- NULLIF
- OBJECT_ID
- OBJECT_NAME
- OBJECTPROPERTY
- OIBJECTPROPERTYEX
- ODBCS 标量函数
- OVER 子句
- PARSENAME
- PATINDEX
- PERCENTILE_CONT
- PERCENTILE_DISC
- PERCENT_RANK
- PI
- POWER
- QUOTENAME
- RADIANS
- RAND
- RANK
- REPLACE
- REPLICATE
- REVERSE
- RIGHT
- ROUND
- ROW_NUMBER
- RTRIM
- SCHEMA_ID
- SCHEMA_NAME
- SERVERPROPERTY
- SESSION_USER
- SIGN
- SIN
- SMALLDATETIMEFROMPARTS
- SOUNDEX
- SPACE
- SQL_VARIANT_PROPERTY
- SQRT
- SQUARE
- STATS_DATE
- STDEV
- STDEVP
- STR
- STRING_AGG
- STRING_SPLIT
- STUFF
- SUBSTRING
- SUM
- SUSER_SNAME
- SWITCHOFFSET
- SYSDATETIME
- SYSDATETIMEOFFSET
- SYSTEM_USER
- [SYSUTCDATETIME]https://learn.microsoft.com/sql/t-sql/functions/sysutcdatetime-transact-sql?toc=/synapse-analytics/sql-data-warehouse/toc.json&bc=/synapse-analytics/sql-data-warehouse/breadcrumb/toc.json&view=azure-sqldw-latest)
- TAN
- TERTIARY_WEIGHTS
- TIMEFROMPARTS
- TRIM
- TODATETIMEOFFSET
- TYPE_ID
- TYPE_NAME
- TYPEPROPERTY
- UNICODE
- UPPER
- USER
- USER_NAME
- VAR
- VARP
- YEAR
- XACT_STATE
事务
诊断会话
过程
- sp_addrolemember
- sp_columns
- sp_configure
- sp_datatype_info_90
- sp_droprolemember
- sp_execute
- sp_executesql
- sp_fkeys
- sp_pdw_add_network_credentials
- sp_pdw_database_encryption
- sp_pdw_database_encryption_regenerate_system_keys
- sp_pdw_log_user_data_masking
- sp_pdw_remove_network_credentials
- sp_pkeys
- sp_prepare
- sp_rename(预览版)
- sp_spaceused
- sp_special_columns_100
- sp_sproc_columns
- sp_statistics
- sp_tables
- sp_unprepare
SET 语句
- SET ANSI_DEFAULTS
- SET ANSI_NULL_DFLT_OFF
- SET ANSI_NULL_DFLT_ON
- SET ANSI_NULLS
- SET ANSI_PADDING
- SET ANSI_WARNINGS
- SET ARITHABORT
- SET ARITHIGNORE
- SET CONCAT_NULL_YIELDS_NULL
- SET DATEFIRST
- SET DATEFORMAT
- SET FMTONLY
- SET IMPLICIT_TRANSACITONS
- SET LOCK_TIMEOUT
- SET NUMBERIC_ROUNDABORT
- SET QUOTED_IDENTIFIER
- SET ROWCOUNT
- SET TEXTSIZE
- SET TRANSACTION ISOLATION LEVEL
- SET XACT_ABORT
后续步骤
有关更多参考信息,请参阅专用 SQL 池中的 T-SQL 语句和专用 SQL 池中的系统视图。