Mysql:1292 truncated incorrect double value -- concat 函數用法
Posted on 2011-07-01 12:57 Gavin.lee 閱讀(1908) 評論(0) 編輯 收藏 所屬分類: JDBCupdate 表,做整體替換時出了錯
update service_config set update_url = 'xxxxxxxx' + agent_id + '.apk';
update service_config set update_url = concat('xxxxxxxx', agent_id, '.apk');
update service_config set update_url = concat('xxxxxxxx', agent_id, '.apk');
語義:更新表service_config的update_url字段
返回結果為連接參數產生的字符串。如有任何一個參數為NULL ,則返回值為 NULL。