Search
 
SCRIPT & CODE EXAMPLE
 

SQL

String concatenation in PostgreSQL

-- with functions
CONCAT(first_name,' ', last_name) AS full_name;

-- with string concatenation operator
SELECT first_name || ' ' || last_name AS full_name FROM customer;

-- String concatenation with a non-string input
SELECT customer_id || ': ' || first_name || ' ' || last_name AS full_name
FROM customer;
Comment

postgres concat

update "ExportTables" SET "Name" = CONCAT("Name", '.csv') 
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql on duplicate key update 
Sql :: oracle nextval insert 
Sql :: How to drop a foreign key constraint in mysql ? 
Sql :: create table in sql 
Sql :: run sql file in terminal 
Sql :: script sql backup database sql server 
Sql :: Check user permissions on postgres database 
Sql :: postgresql update auto_increment value 
Sql :: spring where to put the data sql 
Sql :: select last row mysql 
Sql :: mysql replace remove html tag 
Sql :: alter table add multiple foreign key sql 
Sql :: extract weekday from date in sql 
Sql :: sql server select first day of previous year 
Sql :: check if sql is installed 
Sql :: update auto increment value in mysql 
Sql :: oracle revoke grant 
Sql :: how to check table lock 
Sql :: mysql get latest duplicate rows 
Sql :: how to change the auto increment in existing table mysql 
Sql :: postgres list users 
Sql :: how to select distinct in mysql 
Sql :: delete database mysql command 
Sql :: mysql version 
Sql :: mysql group by date 
Sql :: dual in db2 
Sql :: sql right join with where clause 
Sql :: postgres how to index a column 
Sql :: sql set 
Sql :: increment integer in table sql 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =