Перейти к разделуDevФункции SQLСкалярные функцииСистемные функцииCONNECTION_IDНа этой страницеПоследнее обновление 17 мая 2026 г.CONNECTION_IDDescription Get the connection number of the current sql client. Syntax CONNECTION_ID() Return Value The connection number of the current sql client. Examples select connection_id(); +-----------------+| connection_id() |+-----------------+| 549 |+-----------------+