Search
 
SCRIPT & CODE EXAMPLE
 

SQL

concatenate two strings in sql

-- method 1
select format('Hello, %s how are you doing today?', name) from person;
-- method 2
Select 'Hello, ' || person.name || ' how are you doing today?' from person;
-- method 3
Select Concat ('Hello, ', name, ' how are you doing today?') From person;
-- method 4
SELECT REPLACE(
  'Hello, <name> how are you doing today?',
  '<name>', name
) FROM person;
Comment

sql concat

SELECT CONCAT('Code with', 'bulbul') AS Result;
Comment

concatenation in sql

We use "||" to concatenation in Sql

example:
WHERE LOWER(FIRST_NAME || LAST_NAME)  LIKE '%d%' ; 
Comment

PREVIOUS NEXT
Code Example
Sql :: sql pad left 0 
Sql :: date sql get the last week count 
Sql :: mysql event last execution 
Sql :: how to create a sql database 
Sql :: sql count number of rows after group by 
Sql :: mysql record group by created date count 
Sql :: phone no data type in sql server 
Sql :: mysql connection w3 
Sql :: mysql select true or false 
Sql :: how to check grants on a package in oracle 
Sql :: myswql show full processlist 
Sql :: rename a table in sql server 
Sql :: How can I tell how many Cores SQL Server is actually using? 
Sql :: get data every 30 days in sql 
Sql :: how to connect postgresql database with java 
Sql :: mysql update two tables at once 
Sql :: mysql json query 
Sql :: SQL Greater Than or Equal to Operator 
Sql :: Add a column with a default value to an existing table in SQL Server 
Sql :: mysql timestamp format 
Sql :: c# sqldatareader to list 
Sql :: remove foreign key constraints in postgres 
Sql :: how to drop database name in postgresql 
Sql :: oracle index size calculation 
Sql :: sql log file inof 
Sql :: python dictionary to sql update 
Sql :: sql quote in string 
Sql :: SQL SERVER ORDER BY DATE NULL LAST 
Sql :: datepart sql server 
Sql :: how to count the number of rows in sql 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =