mysql經常使用sql處理

查詢字段處理 一、將Int 轉爲varchar常常用 concat函數,好比concat(8,’0′) 獲得字符串 ’80′java 二、將varchar 轉爲Int 用 cast(a as signed) ,a爲varchar類型的字符串mysql 三、IFNULL(b.account,0) as investMoney,若是b.account爲null,返回0,不然返回b.accountsql
相關文章
相關標籤/搜索