SQL Combine Two Columns in Select Statement

前端 未结 5 1548
栀梦
栀梦 2020-12-03 10:23

If I have a column that is Address1 and Address2 in my database, how do I combine those columns so that I could perform operations on it only in my select statement, I will

5条回答
  •  半阙折子戏
    2020-12-03 10:36

    If you don't want to change your database schema (and I would not for this simple query) you can just combine them in the filter like this: WHERE (Address1 + Address2) LIKE '%searchstring%'

提交回复
热议问题