Postgresql常用语句-多个字符串连接
1. 将2个字符串hello和word拼接在一起
SELECT 'hello' || 'world';
--结果: helloworld
2. 将3个字符串hello,空格和word拼接在一起
SELECT 'hello' || ' ' || 'world';
--结果:hello world
3. 将字符串hello和数字123456拼接在一起
SELECT 'hello' || 123456;
--结果:hello123456
1. 将2个字符串hello和word拼接在一起
SELECT 'hello' || 'world';
--结果: helloworld
2. 将3个字符串hello,空格和word拼接在一起
SELECT 'hello' || ' ' || 'world';
--结果:hello world
3. 将字符串hello和数字123456拼接在一起
SELECT 'hello' || 123456;
--结果:hello123456