I have a SQL query
SELECT TABLE_SCHEMA + TABLE_NAME AS ColumnZ
FROM information_schema.tables
I want the result should be table_Schema.table_name
.
help me please!!
I have a SQL query
SELECT TABLE_SCHEMA + TABLE_NAME AS ColumnZ
FROM information_schema.tables
I want the result should be table_Schema.table_name
.
help me please!!
Try this:
SELECT TABLE_SCHEMA + '.' + TABLE_NAME AS ColumnZ
FROM information_schema.tables
This code work for you try this....
SELECT Title,
FirstName,
lastName,
ISNULL(Title,'') + ' ' + ISNULL(FirstName,'') + ' ' + ISNULL(LastName,'') as FullName
FROM Customer
SELECT CONCAT(TABLE_SCHEMA, '.', TABLE_NAME) AS ColumnZ FROM information_schema.tables
CONCAT
is a new feature in SQL Server 2012 and thus might not be available to the person asking –
Platitudinize From SQL Server 2017 onwards, there is CONCAT_WS
operator, to concatenate with separators.
SELECT CONCAT_WS('.', TABLE_SCHEMA ,TABLE_NAME) AS ColumnZ
FROM information_schema.tables
© 2022 - 2024 — McMap. All rights reserved.
SELECT TABLE_SCHEMA + '.' + TABLE_NAME
.... – Platitudinize