When using SELECT can you modify the value of a returned field based on other fields?

后端 未结 4 1778
梦毁少年i
梦毁少年i 2021-01-18 02:44

When using MySQL SELECT can you change the value of a returned field based on other fields?

For example, if I have this select:

SELECT city,state,cou         


        
4条回答
  •  情歌与酒
    2021-01-18 03:17

    The answer is yes; you're looking for what's called control flow functions.

    Take a look at http://dev.mysql.com/doc/refman/5.0/en/control-flow-functions.html

提交回复
热议问题