倾城别恋,谁是谁的谁鲜橙,瑞士军人
将employees表的所有员工的last_name和first_name拼接起来作为name,中间以一个空格区分
create table employees ( emp_no int(11) not null,
birth_date date not null,
first_name varchar(14) not null,
last_name varchar(16) not null,
gender char(1) not null,
hire_date date not null,
primary key (emp_no));
mysql、sql server、oracle等支持concat方法,
sqlite数据库只支持用连接符号”||”来连接字符串
select last_name||" "||first_name as name from employees
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
数据库SQL---数据库、基本表、视图、索引的定义、修改、删除
在 Azure CentOS VM 中配置 SQL Server 2019 AG - (上)
在 Azure CentOS VM 中配置 SQL Server 2019 AG - (下)
网友评论