SELECT ZIDUAN1||ZIDUAN2 AS ZIDUAN FROM TABLE(合并)
SELECT ZIDUAN1||'AND'||ZIDUAN2 AS ZIDUAN FROM TABLE
Oracle的CONCAT()只允许两个参数;换言之,一次只能将两个字串串连起来。不过,在Oracle中,我们可以用'||'来一次串连多个字串。
SELECT ZIDUAN1||ZIDUAN2 AS ZIDUAN FROM TABLE(合并)
SELECT ZIDUAN1||'AND'||ZIDUAN2 AS ZIDUAN FROM TABLE
Oracle的CONCAT()只允许两个参数;换言之,一次只能将两个字串串连起来。不过,在Oracle中,我们可以用'||'来一次串连多个字串。