How can I do boolean logic on two columns in MySQL?

前端 未结 7 854
野的像风
野的像风 2021-01-18 06:41

I want to do a select in MySql that combines several columns... something like this pseudocode:

SELECT payment1_paid AND payment2_paid AS paid_in_full 
FROM          


        
7条回答
  •  广开言路
    2021-01-18 06:57

    I am not sure but do you mean to concatenate?

    SELECT CONCAT(ColumnA, ColumnB) AS ColumnZ
    FROM Table
    

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题