`

postgresql 字符串转整形

 
阅读更多

字符串转Integer

SELECT CAST (title as integer)

  FROM xxx where code='-1';

 

转整形加一

update xxx set  title = (CAST (title as integer)+1) where code='-1';

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics