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
操作員
要比對的通配符(s)
- = (等於)
- > (大於)
- < (小於)
- >= (大於或等於)
- <= (小於或等於)
- <> (不等於)
- != (不等於)
- AND
- BETWEEN
- EXISTS
- IN
- IS [NOT] NULL
- LIKE
- NOT
- OR
位元運算子
函式
- @@DATEFIRST
- @@ERROR
- @@LANGUAGE
- @@SPID
- @@TRANCOUNT
- @@VERSION
- ABS
- ACOS
- ASCII
- ASIN
- ATAN
- ATN2
- BINARY_CHECKSUM
- 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
- 滯後
- LAST_VALUE
- 導致
- 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
- TAN
- TERTIARY_WEIGHTS
- TIMEFROMPARTS
- TRIM
- TODATETIMEOFFSET
- TYPE_ID
- TYPE_NAME
- TYPEPROPERTY
- UNICODE
- UPPER
- 使用者
- 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