Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql concatenate two columns into one

SELECT concat(first_column, ' ', second_column) from table_name
Comment

mysql concatenate columns

SELECT CONCAT(first_name, ' ', last_name) AS 'Name', dept FROM users;
Comment

mysql concat and use as where column

select * from table where concat_ws(' ',first_name,last_name) 
like '%$search_term%';
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle list user grants 
Sql :: update row in mysql 
Sql :: postgres power 
Sql :: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Public Key Retrieval is not allowed 
Sql :: oracle grant on all tables in schema 
Sql :: alter table auto_increment 
Sql :: wsl install mysql 
Sql :: convert to hexadecimal sql 
Sql :: check database status oracle 
Sql :: mysql convert column to uppercase 
Sql :: add user mysql 
Sql :: sql select all from table 
Sql :: mysql select column where has non int values 
Sql :: mysql remove only_full_group_by permanently 
Sql :: connecting to mysql database using python 
Sql :: this is incompatible with sql_mode=only_full_group_by laravel 
Sql :: sql drop database if exists 
Sql :: How to convert Varchar to Double in sql? 
Sql :: enable service broker in sql server 
Sql :: how to get data between a last week in mysql 
Sql :: oracle plsql sleep 
Sql :: how to delete a record from sqlite in android 
Sql :: sql create table statement 
Sql :: mysql inner join 3 tables 
Sql :: allow external access to mysql 
Sql :: update column data type postgres 
Sql :: give a column name to values generated from case statement in sql 
Sql :: mysql select multiple rows into one column 
Sql :: mysql add column after another 
Sql :: drop df constraint sql server 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =