2024-09-27 00:21:02 发布
网友
如何在sqlite3中组合两个列?我知道我可以在select语句中使用+,但是当我在python中尝试以下代码时:
select
+
select first+last as name from users
它给了我0。在
0
我试过这种说法
我弄错了。在
我想在一列中显示名字和姓氏,如下所示:
'tara.panagop@where.com', 'tara panagop',
如果有空行,则可能需要尝试
select (coalesce(first,'')||" "||coalesce(last,'')) as name from users
as绑定比||更紧密,因此这需要parens:
as
||
select (first||" "||last) as name from users
在引号中使用"作为\":
"
\"
如果有空行,则可能需要尝试
as
绑定比||
更紧密,因此这需要parens:在引号中使用
^{pr2}$"
作为\"
:相关问题 更多 >
编程相关推荐