Posted By

arunpjohny on 09/05/07


Tagged

postgres


Versions (?)

Type Cast


 / Published in: SQL
 

URL: http://www.postgresql.org/docs/8.1/static/sql-createcast.html

Cast the given value from one data type to another

  1. SELECT cast(4.8 AS Integer);
  2.  
  3. SELECT cast(4 AS double precision);

Report this snippet  

You need to login to post a comment.